code: def test_spatial_smoothing_video_data(
      art_warning, video_batch, channels_first
  ):
      try:
          test_input, test_output = video_batch
  
          if channels_first:
              exc_msg = "Only channels last input data is supported"
              with pytest.raises(ValueError, match=exc_msg):
                  _ = SpatialSmoothingTensorFlowV2(
                      channels_first=channels_first, window_size=2
                  )
          else:
              spatial_smoothing = SpatialSmoothingTensorFlowV2(
                  channels_first=channels_first, 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_tensorflow.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import numpy
  from numpy.testing import assert_array_equal
  import pytest
  from art.defences.preprocessor.spatial_smoothing_tensorflow import SpatialSmoothingTensorFlowV2
  from tests.utils import ARTTestException
label_desc: Use image node_id 5 for calling a global function with example usage: test_spatial_smoothing_video_data(art_warning, video_batch, channels_first) without return types