code: def asr_model(test_data_dir):
      preprocessor = {
          "_target_": "nemo.collections.asr.modules.AudioToMelSpectrogramPreprocessor"
      }
      encoder = {
          "_target_": "nemo.collections.asr.modules.ConvASREncoder",
          "feat_in": 64,
          "activation": "relu",
          "conv_mask": True,
          "jasper": [
              {
                  "filters": 1024,
                  "repeat": 1,
                  "kernel": [1],
                  "stride": [1],
                  "dilation": [1],
                  "dropout": 0.0,
                  "residual": False,
                  "separable": True,
                  "se": True,
                  "se_context_size": -1,
              }
          ],
      }
  
      decoder = {
          "_target_": "nemo.collections.asr.modules.ConvASRDecoder",
          "feat_in": 1024,
          "num_classes": -1,
          "vocabulary": None,
      }
  
      tokenizer = {
          "dir": os.path.join(
              test_data_dir, "asr", "tokenizers", "an4_wpe_128"
          ),
          "type": "wpe",
      }
  
      modelConfig = DictConfig(
          {
              "preprocessor": DictConfig(preprocessor),
              "encoder": DictConfig(encoder),
              "decoder": DictConfig(decoder),
              "tokenizer": DictConfig(tokenizer),
          }
      )
  
      model_instance = EncDecCTCModelBPE(cfg=modelConfig)
      return model_instance
  
imports: import copy
  import os
  import shutil
  import tempfile
  import pytest
  import torch
  from omegaconf import DictConfig
  from nemo.collections.asr.data import audio_to_text
  from nemo.collections.asr.models import configs
  from nemo.collections.asr.models.ctc_bpe_models import EncDecCTCModelBPE
  from nemo.collections.asr.parts.submodules.ctc_decoding import CTCBPEDecoding, CTCBPEDecodingConfig
  from nemo.collections.common import tokenizers
  from nemo.utils.config_utils import assert_dataclass_signature_match
label_desc: Use image node_id 1 for calling a global function with example usage: asr_model(test_data_dir) and returns: model_instance