class_docstr: Test the ImperceptibleASR attack.
class_docstr_tok: ["Test","the","ImperceptibleASR","attack","."]
code: def test_generate_batch(
      self, art_warning, mocker, asr_dummy_estimator, audio_data
  ):
      try:
          test_input, test_target = audio_data
  
          mocker.patch.object(ImperceptibleASR, "_create_adversarial")
          mocker.patch.object(ImperceptibleASR, "_create_imperceptible")
  
          imperceptible_asr = ImperceptibleASR(
              estimator=asr_dummy_estimator(),
              masker=PsychoacousticMasker(),
          )
          _ = imperceptible_asr._generate_batch(test_input, test_target)
  
          imperceptible_asr._create_adversarial.assert_called()
          imperceptible_asr._create_imperceptible.assert_called()
      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.attack import EvasionAttack
  from art.attacks.evasion.imperceptible_asr.imperceptible_asr import ImperceptibleASR, PsychoacousticMasker
  from tests.utils import ARTTestException
label_desc: Use image node_id 4 for calling the TestImperceptibleASR obj's underlying member method code with example usage: obj.test_generate_batch(art_warning, mocker, asr_dummy_estimator, audio_data) without return types