def METHOD_NAME(s1, s2):
    if s1.shape and s2.shape:
        s1a = np.asarray(s1.shape)
        s2a = np.asarray(s2.shape)
        return ((s1a == 1) | (s2a == 1) | (s2a == s1a)).all()
    return True