code: def gen_new_mot(mot_list):
      out_dict = dict()
      for tracklet in mot_list:
          tracklet = mot_list[tracklet]
          for f in tracklet:
              out_dict[tracklet[f]["imgname"]] = tracklet[f]
      return out_dict
  
imports: import os
  import re
  import cv2
  import gc
  import numpy
  import pandas
  from tqdm import tqdm
  import warnings
label_desc: Use image node_id 2 for calling a global function with example usage: gen_new_mot(mot_list) and returns: out_dict