code: def test_gmm_wrong_num_modes_format_1():
      """Test that FisherVectorException is raised when incorrect type for
      n_modes is passed into the learn_gmm function.
      """
  
      with pytest.raises(FisherVectorException):
          learn_gmm(
              [np.zeros((5, 10)), np.zeros((4, 10))],
              n_modes="not_valid",
          )
  
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 5 for calling a global function with example usage: test_gmm_wrong_num_modes_format_1() without return types