code: def test_mismatched_ndim():
      a = np.zeros((8, 8))
      a[:2] = 2
      a = np.array([a])
      with pytest.raises(ValueError):
          median_filter(a > 0, np.ones((3, 3)))
  
file_path: mahotas/mahotas/tests/test_median_filter.py
imports: import numpy
  from mahotas.convolve import median_filter, rank_filter
  import pytest
label_desc: Use image node_id 5 for calling a global function with example usage: test_mismatched_ndim() without return types