code: def test_non_spatial_data_error(art_warning, tabular_batch):
      try:
          test_input = tabular_batch
          spatial_smoothing = SpatialSmoothing(channels_first=True)
  
          exc_msg = "Unrecognized input dimension. Spatial smoothing can only be applied to image and video data."
          with pytest.raises(ValueError, match=exc_msg):
              spatial_smoothing(test_input)
      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 4 for calling a global function with example usage: test_non_spatial_data_error(art_warning, tabular_batch) without return types