code: def test_check_params(art_warning):
      try:
          from art.estimators.speech_recognition.pytorch_deep_speech import (
              PyTorchDeepSpeech,
          )
          from art.attacks.evasion.imperceptible_asr.imperceptible_asr_pytorch import (
              ImperceptibleASRPyTorch,
          )
  
          speech_recognizer = PyTorchDeepSpeech(
              pretrained_model="librispeech",
              device_type="cpu",
              use_amp=False,
              preprocessing_defences=None,
          )
  
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(speech_recognizer, eps=-1)
  
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, max_iter_1=1.0
              )
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, max_iter_1=-1
              )
  
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, max_iter_2=1.0
              )
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, max_iter_2=-1
              )
  
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, learning_rate_1="1"
              )
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, learning_rate_1=-1.0
              )
  
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, learning_rate_2="1"
              )
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, learning_rate_2=-1.0
              )
  
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, global_max_length=1.0
              )
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, global_max_length=-1
              )
  
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, initial_rescale="1"
              )
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, initial_rescale=-1.0
              )
  
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, decrease_factor_eps="1"
              )
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, decrease_factor_eps=-1.0
              )
  
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, num_iter_decrease_eps=1.0
              )
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, num_iter_decrease_eps=-1
              )
  
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(speech_recognizer, alpha="1")
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(speech_recognizer, alpha=-1.0)
  
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, increase_factor_alpha="1"
              )
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, increase_factor_alpha=-1.0
              )
  
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, num_iter_increase_alpha=1.0
              )
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, num_iter_increase_alpha=-1
              )
  
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, decrease_factor_alpha="1"
              )
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, decrease_factor_alpha=-1.0
              )
  
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, num_iter_decrease_alpha=1.0
              )
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, num_iter_decrease_alpha=-1
              )
  
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, win_length=1.0
              )
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, win_length=-1
              )
  
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, hop_length=1.0
              )
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, hop_length=-1
              )
  
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(speech_recognizer, n_fft=1.0)
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(speech_recognizer, n_fft=-1)
  
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, win_length=5, n_fft=1
              )
  
          with pytest.raises(ValueError):
              _ = ImperceptibleASRPyTorch(
                  speech_recognizer, batch_size=-1
              )
  
      except ARTTestException as e:
          art_warning(e)
  
file_path: adversarial-robustness-toolbox/tests/attacks/evasion/test_imperceptible_asr_pytorch.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import numpy
  import pytest
  from art.config import ART_NUMPY_DTYPE
  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) without return types