code: def test_wrong_parameters(
      params, art_warning, get_default_mnist_subset, image_dl_estimator
  ):
      try:
          (x_train_mnist, y_train_mnist), (
              _,
              _,
          ) = get_default_mnist_subset
  
          classifier, _ = image_dl_estimator()
  
          classifier.fit(
              x_train_mnist[:NB_TRAIN],
              y_train_mnist[:NB_TRAIN],
              nb_epochs=1,
          )
          with pytest.raises(ValueError):
              _ = SpectralSignatureDefense(
                  classifier,
                  x_train_mnist[:NB_TRAIN],
                  y_train_mnist[:NB_TRAIN],
                  **params,
              )
      except ARTTestException as e:
          art_warning(e)
  
file_path: adversarial-robustness-toolbox/tests/defences/detector/poison/test_spectral_signature_defense.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import pytest
  import numpy
  from art.defences.detector.poison import SpectralSignatureDefense
  from tests.utils import ARTTestException
label_desc: Use image node_id 1 for calling a global function with example usage: test_wrong_parameters(params, art_warning, get_default_mnist_subset, image_dl_estimator) without return types