code: def test_non_temporal_data_error(art_warning, image_batch_small):
      try:
          test_input = image_batch_small
          resample = Resample(16000, 16000)
  
          exc_msg = "Resampling can only be applied to temporal data across at least one channel."
          with pytest.raises(ValueError, match=exc_msg):
              resample(test_input)
      except ARTTestException as e:
          art_warning(e)
  
file_path: adversarial-robustness-toolbox/tests/defences/preprocessor/test_resample.py
imports: import logging
  import numpy
  import pytest
  import resampy
  from art.defences.preprocessor import Resample
  from tests.utils import ARTTestException
label_desc: Use image node_id 4 for calling a global function with example usage: test_non_temporal_data_error(art_warning, image_batch_small) without return types