code: def test_median_error_ndim():
      img = np.random.randint(0, 10, size=(5, 5, 5, 5), dtype=np.uint8)
      with pytest.raises(ValueError):
          median(img, behavior="rank")
  
file_path: scikit-image/skimage/filters/tests/test_median.py
imports: import numpy
  import pytest
  from numpy.testing import assert_allclose
  from scipy import ndimage
  from skimage.filters import median, rank
label_desc: Use image node_id 5 for calling a global function with example usage: test_median_error_ndim() without return types