code: def asr_dummy_estimator(framework):
      def _asr_dummy_estimator(**kwargs):
          asr_dummy = None
          if framework in ("tensorflow2v1", "tensorflow2"):
  
              class TensorFlowV2ASRDummy(
                  TensorFlowV2Estimator, SpeechRecognizerMixin
              ):
                  def get_activations(self):
                      pass
  
                  def predict(self, x):
                      pass
  
                  def loss_gradient(self, x, y, **kwargs):
                      return x
  
                  @property
                  def input_shape(self):
                      return None
  
                  def compute_loss(self, x, y, **kwargs):
                      pass
  
              asr_dummy = TensorFlowV2ASRDummy(
                  channels_first=None, model=None, clip_values=None
              )
          if framework == "pytorch":
  
              class PyTorchASRDummy(
                  PyTorchEstimator, SpeechRecognizerMixin
              ):
                  def get_activations(self):
                      pass
  
                  def predict(self, x):
                      pass
  
                  def loss_gradient(self, x, y, **kwargs):
                      return x
  
                  @property
                  def input_shape(self):
                      return None
  
                  def compute_loss(self, x, y, **kwargs):
                      pass
  
              asr_dummy = PyTorchASRDummy(
                  channels_first=None, model=None, clip_values=None
              )
          if asr_dummy is None:
              raise ARTTestFixtureNotImplemented(
                  "ASR dummy estimator not available for this framework",
                  asr_dummy_estimator.__name__,
                  framework,
              )
          return asr_dummy
  
      return _asr_dummy_estimator
  
file_path: adversarial-robustness-toolbox/tests/attacks/evasion/conftest.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import numpy
  import pytest
  from art.estimators.pytorch import PyTorchEstimator
  from art.estimators.speech_recognition.speech_recognizer import SpeechRecognizerMixin
  from art.estimators.tensorflow import TensorFlowV2Estimator
  from tests.utils import ARTTestFixtureNotImplemented
label_desc: Use image node_id 4 for calling a global function with example usage: asr_dummy_estimator(framework) and returns: _asr_dummy_estimator, asr_dummy, x, None, x, None