code: def test_check_params(art_warning, image_dl_estimator_for_attack):
      try:
          classifier = image_dl_estimator_for_attack(ShadowAttack)
  
          with pytest.raises(ValueError):
              _ = ShadowAttack(classifier, sigma="test")
          with pytest.raises(ValueError):
              _ = ShadowAttack(classifier, sigma=-0.5)
  
          with pytest.raises(ValueError):
              _ = ShadowAttack(classifier, nb_steps=0.5)
          with pytest.raises(ValueError):
              _ = ShadowAttack(classifier, nb_steps=-5)
  
          with pytest.raises(ValueError):
              _ = ShadowAttack(classifier, learning_rate=5)
          with pytest.raises(ValueError):
              _ = ShadowAttack(classifier, learning_rate=-5.0)
  
          with pytest.raises(ValueError):
              _ = ShadowAttack(classifier, lambda_tv=5)
          with pytest.raises(ValueError):
              _ = ShadowAttack(classifier, lambda_tv=-5.0)
  
          with pytest.raises(ValueError):
              _ = ShadowAttack(classifier, lambda_c=5)
          with pytest.raises(ValueError):
              _ = ShadowAttack(classifier, lambda_c=-5.0)
  
          with pytest.raises(ValueError):
              _ = ShadowAttack(classifier, lambda_s=5)
          with pytest.raises(ValueError):
              _ = ShadowAttack(classifier, lambda_s=-5.0)
  
          with pytest.raises(ValueError):
              _ = ShadowAttack(classifier, batch_size=5.0)
          with pytest.raises(ValueError):
              _ = ShadowAttack(classifier, batch_size=-5)
  
          with pytest.raises(ValueError):
              _ = ShadowAttack(classifier, targeted=5.0)
  
          with pytest.raises(ValueError):
              _ = ShadowAttack(classifier, verbose=5.0)
  
      except ARTTestException as e:
          art_warning(e)
  
file_path: adversarial-robustness-toolbox/tests/attacks/evasion/test_shadow_attack.py
imports: import logging
  import pytest
  import numpy
  from art.attacks.evasion import ShadowAttack
  from art.estimators.estimator import BaseEstimator, LossGradientsMixin
  from art.estimators.classification.classifier import ClassifierMixin
  from tests.attacks.utils import backend_test_classifier_type_check_fail
  from tests.utils import ARTTestException
label_desc: Use image node_id 4 for calling a global function with example usage: test_check_params(art_warning, image_dl_estimator_for_attack) without return types