def METHOD_NAME():
    """Test that DescriptorException is raised when not all descriptors are of
    rank 2.
    """
    with pytest.raises(DescriptorException):
        learn_gmm([np.zeros((5, 10)), np.zeros((4, 10, 1))], n_modes=1)