code: def test_spatial_smoothing_median_filter_call(art_warning):
      try:
          test_input = np.array([[[[1, 2], [3, 4]]]])
          test_output = np.array([[[[1, 2], [3, 3]]]])
          spatial_smoothing = SpatialSmoothing(
              channels_first=True, window_size=2
          )
  
          assert_array_equal(
              spatial_smoothing(test_input)[0], test_output
          )
      except ARTTestException as e:
          art_warning(e)
  
file_path: adversarial-robustness-toolbox/tests/defences/preprocessor/test_spatial_smoothing.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from art.defences.preprocessor import SpatialSmoothing
  from tests.utils import ARTTestException
label_desc: Use image node_id 1 for calling a global function with example usage: test_spatial_smoothing_median_filter_call(art_warning) without return types