code: def tmp_tokenizer(test_data_dir):
      cfg = DictConfig(
          {
              "dir": os.path.join(
                  test_data_dir, "asr", "tokenizers", "an4_wpe_128"
              ),
              "type": "wpe",
          }
      )
  
      class _TmpASRBPE(mixins.ASRBPEMixin):
          def register_artifact(self, _, vocab_path):
              return vocab_path
  
      asrbpe = _TmpASRBPE()
      asrbpe._setup_tokenizer(cfg)
      return asrbpe.tokenizer
  
imports: import os
  from functools import lru_cache
  import pytest
  import torch
  from omegaconf import DictConfig
  from nemo.collections.asr.models import ASRModel
  from nemo.collections.asr.modules import RNNTDecoder, RNNTJoint
  from nemo.collections.asr.parts.mixins import mixins
  from nemo.collections.asr.parts.submodules import rnnt_beam_decoding
  from nemo.collections.asr.parts.submodules import rnnt_greedy_decoding
  from nemo.collections.asr.parts.submodules.rnnt_decoding import RNNTBPEDecoding, RNNTDecoding, RNNTDecodingConfig
  from nemo.collections.asr.parts.utils import rnnt_utils
  from nemo.core.utils import numba_utils
  from nemo.core.utils.numba_utils import __NUMBA_MINIMUM_VERSION__
label_desc: Use image node_id 2 for calling a global function with example usage: tmp_tokenizer(test_data_dir) and returns: asrbpe, vocab_path