code: def tts_tokenizer():
      @dataclass
      class G2PConfig:
          _target_: str = (
              "nemo.collections.tts.g2p.models.en_us_arpabet.EnglishG2p"
          )
          phoneme_dict: str = str(
              BASE_DIR
              / "scripts/tts_dataset_files/cmudict-0.7b_nv22.10"
          )
          heteronyms: str = str(
              BASE_DIR / "scripts/tts_dataset_files/heteronyms-052722"
          )
          phoneme_probability: float = 0.5
  
      @dataclass
      class TextTokenizerCfg:
          _target_: str = "nemo.collections.common.tokenizers.text_to_speech.tts_tokenizers.EnglishPhonemesTokenizer"
          punct: bool = True
          stresses: bool = True
          chars: bool = True
          apostrophe: bool = True
          pad_with_space: bool = True
          add_blank_at: bool = True
          g2p: G2PConfig = field(default_factory=lambda: G2PConfig())
  
      config = OmegaConf.create(OmegaConf.to_yaml(TextTokenizerCfg()))
      return instantiate(config)
  
imports: import json
  import multiprocessing
  import os
  from dataclasses import dataclass, field
  from pathlib import Path
  import pytest
  from hydra.utils import instantiate
  from omegaconf import OmegaConf
  from nemo.collections.asr.data.text_to_text import TextToTextDataset, TextToTextItem, TextToTextIterableDataset
  from nemo.collections.common import tokenizers
label_desc: Use image node_id 7 for calling a global function with example usage: tts_tokenizer() and returns: instantiate