code: def collect_annotations(files, nproc=1):
      print("Loading annotation images")
      if nproc > 1:
          images = track_parallel_progress(
              load_img_info, files, nproc=nproc
          )
      else:
          images = track_progress(load_img_info, files)
  
      return images
  
file_path: mmdetection/tools/dataset_converters/cityscapes.py
imports: import argparse
  import glob
  import os.path
  import cityscapesscripts.helpers.labels
  import mmcv
  import numpy
  import pycocotools.mask
  from mmengine.fileio import dump
  from mmengine.utils import Timer, mkdir_or_exist, track_parallel_progress, track_progress
label_desc: Use image node_id 2 for calling a global function with example usage: collect_annotations(files, nproc) and returns: images