code: def read_label_map(path: str) -> Dict[str, int]:
      """Return label map read from the given path."""
      with open(path, "r") as f:
          label_map = {}
          empty_line_encountered = False
          for tag in f:
              tag = tag.strip()
              if tag:
                  label_map[tag] = len(label_map)
              else:
                  if empty_line_encountered:
                      raise ValueError(
                          "There should be no empty lines in the middle of the label map "
                          "file."
                      )
                  empty_line_encountered = True
          return label_map
  
file_path: NeMo/nemo/collections/nlp/data/text_normalization_as_tagging/utils.py
imports: import re
  from itertools import groupby
  from typing import Dict, List, Tuple
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: read_label_map(path) and returns: label_map