code: def test_gmm_wrong_descriptor_format_3():
      """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
          )
  
file_path: scikit-image/skimage/feature/tests/test_fisher_vector.py
imports: import pytest
  import numpy
  from skimage.feature._fisher_vector import learn_gmm, fisher_vector, FisherVectorException, DescriptorException
label_desc: Use image node_id 3 for calling a global function with example usage: test_gmm_wrong_descriptor_format_3() without return types