code: def test_morphsnakes_incorrect_image_shape():
      img = np.zeros((10, 10, 3))
      ls = np.zeros((10, 9))
  
      with pytest.raises(ValueError):
          morphological_chan_vese(img, num_iter=1, init_level_set=ls)
      with pytest.raises(ValueError):
          morphological_geodesic_active_contour(
              img, num_iter=1, init_level_set=ls
          )
  
file_path: scikit-image/skimage/segmentation/tests/test_morphsnakes.py
imports: import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from skimage.segmentation import disk_level_set, inverse_gaussian_gradient, morphological_chan_vese, morphological_geodesic_active_contour
label_desc: Use image node_id 2 for calling a global function with example usage: test_morphsnakes_incorrect_image_shape() without return types