code: def read_labelmap(labelmap_file):
      """Read label map and class ids."""
  
      labelmap = []
      class_ids = set()
      name = ""
      class_id = ""
      with pathmgr.open(labelmap_file, "r") as f:
          for line in f:
              if line.startswith("  name:"):
                  name = line.split('"')[1]
              elif line.startswith("  id:") or line.startswith(
                  "  label_id:"
              ):
                  class_id = int(line.strip().split(" ")[-1])
                  labelmap.append({"id": class_id, "name": name})
                  class_ids.add(class_id)
      return labelmap, class_ids
  
file_path: SlowFast/slowfast/utils/ava_eval_helper.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import csv
  import logging
  import pprint
  import time
  from collections import defaultdict
  import numpy
  import slowfast.utils.distributed
  from ava_evaluation import object_detection_evaluation, standard_fields
  from slowfast.utils.env import pathmgr
label_desc: Use image node_id 4 for calling a global function with example usage: read_labelmap(labelmap_file) and returns: labelmap,  class_ids