code: def test_check_params(art_warning, image_dl_estimator_for_attack):
      try:
          classifier = image_dl_estimator_for_attack(FastGradientMethod)
  
          with pytest.raises(ValueError):
              _ = FastGradientMethod(classifier, norm=0)
  
          with pytest.raises(ValueError):
              _ = FastGradientMethod(classifier, eps=-1, eps_step=1)
          with pytest.raises(ValueError):
              _ = FastGradientMethod(
                  classifier,
                  eps=np.array([-1, -1, -1]),
                  eps_step=np.array([1, 1, 1]),
              )
  
          with pytest.raises(ValueError):
              _ = FastGradientMethod(classifier, eps=1, eps_step=-1)
          with pytest.raises(ValueError):
              _ = FastGradientMethod(
                  classifier,
                  eps=np.array([1, 1, 1]),
                  eps_step=np.array([-1, -1, -1]),
              )
  
          with pytest.raises(TypeError):
              _ = FastGradientMethod(
                  classifier, eps=1, eps_step=np.array([1, 1, 1])
              )
  
          with pytest.raises(ValueError):
              _ = FastGradientMethod(classifier, targeted="true")
  
          with pytest.raises(TypeError):
              _ = FastGradientMethod(classifier, num_random_init=1.0)
          with pytest.raises(ValueError):
              _ = FastGradientMethod(classifier, num_random_init=-1)
  
          with pytest.raises(ValueError):
              _ = FastGradientMethod(classifier, batch_size=-1)
  
          with pytest.raises(ValueError):
              _ = FastGradientMethod(classifier, minimal="true")
  
      except ARTTestException as e:
          art_warning(e)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import numpy
  import pytest
  from art.attacks.evasion import FastGradientMethod
  from art.estimators.estimator import BaseEstimator, LossGradientsMixin
  from tests.attacks.utils import backend_check_adverse_values, backend_test_defended_images
  from tests.attacks.utils import backend_test_random_initialisation_images, backend_targeted_images
  from tests.attacks.utils import backend_targeted_tabular, backend_untargeted_tabular, backend_masked_images
  from tests.attacks.utils import backend_test_classifier_type_check_fail
  from tests.utils import ExpectedValue, ARTTestException
label_desc: Use image node_id 10 for calling a global function with example usage: test_check_params(art_warning, image_dl_estimator_for_attack) without return types