code: def parse_pt_gt(mot_feature):
      img_rects = dict()
      for line in mot_feature:
          fid = int(re.sub("[a-z,A-Z]", "", mot_feature[line]["frame"]))
          tid = mot_feature[line]["id"]
          rect = list(
              map(lambda x: int(float(x)), mot_feature[line]["bbox"])
          )
          if fid not in img_rects:
              img_rects[fid] = list()
          rect.insert(0, tid)
          img_rects[fid].append(rect)
      return img_rects
  
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 25 for calling a global function with example usage: parse_pt_gt(mot_feature) and returns: img_rects