code: def test_nodefence(
      art_warning, get_default_mnist_subset, image_dl_estimator
  ):
      try:
          preprocessing_defences = []
          device_type = None
          _test_preprocessing_defences_forward(
              get_default_mnist_subset,
              image_dl_estimator,
              device_type,
              preprocessing_defences,
          )
          _test_preprocessing_defences_backward(
              get_default_mnist_subset,
              image_dl_estimator,
              device_type,
              preprocessing_defences,
          )
      except ARTTestException as e:
          art_warning(e)
  
imports: import numpy
  import pytest
  import tensorflow
  import sklearn
  import sklearn.datasets
  import sklearn.model_selection
  from art.estimators.classification.tensorflow import TensorFlowV2Classifier
  from art.estimators.classification.keras import KerasClassifier
  from art.defences.preprocessor.spatial_smoothing import SpatialSmoothing
  from art.defences.preprocessor.spatial_smoothing_tensorflow import SpatialSmoothingTensorFlowV2
  from art.attacks.evasion import FastGradientMethod, ProjectedGradientDescent
  from tests.attacks.utils import backend_test_defended_images
  from tests.utils import ARTTestException
label_desc: Use image node_id 4 for calling a global function with example usage: test_nodefence(art_warning, get_default_mnist_subset, image_dl_estimator) without return types