code: def test_median_warning(image, mode, cval, behavior, warning_type):
      if warning_type:
          with pytest.warns(warning_type):
              median(image, mode=mode, behavior=behavior)
      else:
          median(image, mode=mode, behavior=behavior)
  
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 2 for calling a global function with example usage: test_median_warning(image, mode, cval, behavior, warning_type) without return types