code: def test_check_params(art_warning, image_dl_estimator_for_attack):
      try:
          classifier = image_dl_estimator_for_attack(
              BrendelBethgeAttack, from_logits=True
          )
  
          with pytest.raises(ValueError):
              _ = BrendelBethgeAttack(classifier, norm=3)
  
          with pytest.raises(ValueError):
              _ = BrendelBethgeAttack(classifier, targeted="true")
  
          with pytest.raises(ValueError):
              _ = BrendelBethgeAttack(classifier, overshoot=1)
          with pytest.raises(ValueError):
              _ = BrendelBethgeAttack(classifier, overshoot=0.9)
  
          with pytest.raises(ValueError):
              _ = BrendelBethgeAttack(classifier, steps=1.0)
          with pytest.raises(ValueError):
              _ = BrendelBethgeAttack(classifier, steps=0)
  
          with pytest.raises(ValueError):
              _ = BrendelBethgeAttack(classifier, lr=1)
          with pytest.raises(ValueError):
              _ = BrendelBethgeAttack(classifier, lr=-1)
  
          with pytest.raises(ValueError):
              _ = BrendelBethgeAttack(classifier, lr_decay=1)
          with pytest.raises(ValueError):
              _ = BrendelBethgeAttack(classifier, lr_decay=-1)
  
          with pytest.raises(ValueError):
              _ = BrendelBethgeAttack(classifier, lr_num_decay=1.0)
          with pytest.raises(ValueError):
              _ = BrendelBethgeAttack(classifier, lr_num_decay=-1)
  
          with pytest.raises(ValueError):
              _ = BrendelBethgeAttack(classifier, momentum=1)
          with pytest.raises(ValueError):
              _ = BrendelBethgeAttack(classifier, momentum=-1)
  
          with pytest.raises(ValueError):
              _ = BrendelBethgeAttack(
                  classifier, binary_search_steps=1.0
              )
          with pytest.raises(ValueError):
              _ = BrendelBethgeAttack(
                  classifier, binary_search_steps=-1
              )
  
          with pytest.raises(ValueError):
              _ = BrendelBethgeAttack(classifier, init_size=1.0)
          with pytest.raises(ValueError):
              _ = BrendelBethgeAttack(classifier, init_size=-1)
  
      except ARTTestException as e:
          art_warning(e)
  
file_path: adversarial-robustness-toolbox/tests/attacks/evasion/test_brendel_and_bethge.py
imports: import logging
  import numpy
  import pytest
  from art.attacks.evasion import BrendelBethgeAttack
  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 2 for calling a global function with example usage: test_check_params(art_warning, image_dl_estimator_for_attack) without return types