code: def parse_pt(mot_feature, zones=None):
      mot_list = dict()
      for line in mot_feature:
          fid = int(re.sub("[a-z,A-Z]", "", mot_feature[line]["frame"]))
          tid = mot_feature[line]["id"]
          bbox = list(
              map(lambda x: int(float(x)), mot_feature[line]["bbox"])
          )
          if tid not in mot_list:
              mot_list[tid] = dict()
          out_dict = mot_feature[line]
          if zones is not None:
              out_dict["zone"] = zones.get_zone(bbox)
          else:
              out_dict["zone"] = None
          mot_list[tid][fid] = out_dict
      return mot_list
  
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 1 for calling a global function with example usage: parse_pt(mot_feature, zones) and returns: mot_list