code: def get_wordid_to_phonemes(
      wordid_to_phonemes_file: str, to_lower: bool = True
  ):
      """
      WikiHomograph and NeMo use slightly different phoneme sets, this function reads WikiHomograph word_ids to NeMo
      IPA heteronyms mapping.
  
      Args:
          wordid_to_phonemes_file: Path to a file with mapping from wordid predicted by the model to phonemes, e.g.,
              NeMo/scripts/tts_dataset_files/wordid_to_ipa-0.7b_nv22.10.tsv
          to_lower: set to True to lower case wordid
      """
      if not os.path.exists(wordid_to_phonemes_file):
          raise ValueError(f"{wordid_to_phonemes_file} not found")
  
      wordid_to_nemo_cmu = {}
      with open(wordid_to_phonemes_file, "r", encoding="utf-8") as f:
          for i, line in enumerate(f):
              if to_lower:
                  line = line.lower()
              line = line.strip().split("  ")
              wordid_to_nemo_cmu[line[0]] = line[1]
      return wordid_to_nemo_cmu
  
file_path: NeMo/nemo/collections/tts/g2p/utils.py
imports: import csv
  import os
  import re
  import string
  from typing import Dict, List, Union
label_desc: Use image node_id 2 for calling a global function with example usage: get_wordid_to_phonemes(wordid_to_phonemes_file, to_lower) and returns: wordid_to_nemo_cmu