code: def get_label_id_map(label_id_map_path: str) -> Dict[str, int]:
      label_name_id_map: Dict[str, int]
  
      try:
          with g_pathmgr.open(label_id_map_path, "r") as f:
              label_json = json.load(f)
  
              # TODO: Verify?
              return label_json
      except Exception:
          raise FileNotFoundError(
              f"{label_id_map_path} must be a valid label id json"
          )
  
file_path: pytorchvideo/pytorchvideo/data/ego4d/utils.py
imports: import json
  import logging
  from abc import ABC, abstractmethod
  from typing import Any, Dict, Tuple
  from iopath.common.file_io import g_pathmgr
  from pytorchvideo.data.clip_sampling import ClipInfo, ClipSampler
  from pytorchvideo.data.utils import get_logger
label_desc: Use image node_id 2 for calling a global function with example usage: get_label_id_map(label_id_map_path) and returns: label_json