code: def _parse_label_file(label_file):
      index_list = []
      classes_names = []
      with open(label_file, "r") as f:
          reader = csv.reader(f)
          for line in reader:
              classes_names.append(line[1])
              index_list.append(line[0])
      index_mapping = {index: i for i, index in enumerate(index_list)}
      return classes_names, index_mapping
  
file_path: mmdetection/tools/dataset_converters/openimages2odvg.py
imports: import argparse
  import copy
  import csv
  import json
  import os.path
  import jsonlines
  from mmcv.image import imfrombytes
  from mmengine.fileio import get
label_desc: Use image node_id 1 for calling a global function with example usage: _parse_label_file(label_file) and returns: classes_names,  index_mapping