def is_same_shape(shape1, shape2):
    """Checks if two structures[could be list or single value for example] have the same shape"""
    if len(shape1) != len(shape2):
        return False
    else:
        for i in range(len(shape1)):
            if shape1[i] != shape2[i]:
                return False

        return True