code: def test_invalid_image_median(image_shape):
      with pytest.raises((ValueError, tf.errors.InvalidArgumentError)):
          image = tf.ones(shape=image_shape)
          median_filter2d(image)
  
imports: import pytest
  import numpy
  import tensorflow
  from tensorflow_addons.image import mean_filter2d
  from tensorflow_addons.image import median_filter2d
  from tensorflow_addons.image import gaussian_filter2d
  from tensorflow_addons.utils import test_utils
  from scipy.ndimage.filters import gaussian_filter
label_desc: Use image node_id 13 for calling a global function with example usage: test_invalid_image_median(image_shape) without return types