def get_unique_input_shape(inputs):
    """
    Function that returns the input shape if they are all the same,
    otherwise it returns None.
    Params:
        - inputs: Dictionary of tensors.
    Returns:
        - Int or None.
    """
    shapes = []
    for _, input in inputs.items():
        shapes.append(tuple(input.get_shape().as_list()))
    shapes = list(set(shapes))
    if len(shapes) != 1:
        return None
    return shapes[0]