code: def load_labelmap(path):
      """Loads label map proto.
  
      Args:
        path: path to StringIntLabelMap proto text file.
      Returns:
        a StringIntLabelMapProto
      """
      with open(path, "r") as fid:
          label_map_string = fid.read()
          label_map = (
              string_int_label_map_pb2.StringIntLabelMap()
          )  # noqa
          try:
              text_format.Merge(label_map_string, label_map)  # noqa
          except text_format.ParseError:  # noqa
              label_map.ParseFromString(label_map_string)
      _validate_label_map(label_map)
      return label_map
  
file_path: SlowFast/ava_evaluation/label_map_util.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
label_desc: Use image node_id 5 for calling a global function with example usage: load_labelmap(path) and returns: label_map