code: def test_check_params(art_warning, image_dl_estimator_for_attack):
      try:
          classifier = image_dl_estimator_for_attack(
              FeatureAdversariesNumpy
          )
  
          with pytest.raises(ValueError):
              _ = FeatureAdversariesNumpy(classifier, delta=None)
          with pytest.raises(ValueError):
              _ = FeatureAdversariesNumpy(classifier, delta=-1.0)
  
          with pytest.raises(ValueError):
              _ = FeatureAdversariesNumpy(
                  classifier, delta=1.0, layer=1.0
              )
  
          with pytest.raises(ValueError):
              _ = FeatureAdversariesNumpy(
                  classifier, delta=1.0, layer=1, batch_size=-1
              )
  
      except ARTTestException as e:
          art_warning(e)
  
file_path: adversarial-robustness-toolbox/tests/attacks/evasion/feature_adversaries/test_feature_adversaries.py
imports: import logging
  import numpy
  import pytest
  from art.attacks.evasion import FeatureAdversariesNumpy
  from art.estimators.estimator import BaseEstimator, NeuralNetworkMixin
  from tests.attacks.utils import backend_test_classifier_type_check_fail
  from tests.utils import ARTTestException
label_desc: Use image node_id 3 for calling a global function with example usage: test_check_params(art_warning, image_dl_estimator_for_attack) without return types