code: def test_preprocessing_defences(art_warning):
      try:
          from art.estimators.object_detection.tensorflow_v2_faster_rcnn import (
              TensorFlowV2FasterRCNN,
          )
          from art.defences.preprocessor.spatial_smoothing import (
              SpatialSmoothing,
          )
  
          (_, _), (x_test, _), _, _ = load_dataset("cifar10")
          input_shape = tuple(x_test.shape[1:])
  
          pre_def = SpatialSmoothing()
  
          with pytest.raises(ValueError):
              _ = TensorFlowV2FasterRCNN(
                  input_shape=input_shape,
                  clip_values=(0, 1),
                  attack_losses=(
                      "loss_classifier",
                      "loss_box_reg",
                      "loss_objectness",
                      "loss_rpn_box_reg",
                  ),
                  preprocessing_defences=pre_def,
              )
  
      except ARTTestException as e:
          art_warning(e)
  
file_path: adversarial-robustness-toolbox/tests/estimators/object_detection/test_tensorflow_v2_faster_rcnn.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import numpy
  import pytest
  from art.utils import load_dataset
  from tests.utils import ARTTestException, master_seed
label_desc: Use image node_id 3 for calling a global function with example usage: test_preprocessing_defences(art_warning) without return types