code: def read_wordids(wordid_map: str):
      """
      Reads wordid file from WikiHomograph dataset,
      https://github.com/google-research-datasets/WikipediaHomographData/blob/master/data/wordids.tsv
  
      Args:
          wordid_map: path to wordids.tsv
      Returns:
          data_dict: a dictionary of graphemes with corresponding word_id - ipa_form pairs
          wordid_to_idx: word id to label id mapping
      """
      if not os.path.exists(wordid_map):
          raise ValueError(f"{wordid_map} not found")
  
      data_dict = {}
      wordid_to_idx = {}
  
      with open(wordid_map, "r", encoding="utf-8") as f:
          tsv_file = csv.reader(f, delimiter="\t")
  
          for i, line in enumerate(tsv_file):
              if i == 0:
                  continue
              grapheme = line[0]
              word_id = line[1]
  
              ipa_form = line[3]
              wordid_to_idx[word_id] = len(wordid_to_idx)
              if grapheme not in data_dict:
                  data_dict[grapheme] = {}
              data_dict[grapheme][word_id] = ipa_form
      return data_dict, wordid_to_idx
  
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 1 for calling a global function with example usage: read_wordids(wordid_map) and returns: data_dict,  wordid_to_idx