code: def sub_cluster(cid_tid_dict):
      """
      cid_tid_dict: all camera_id and track_id
      """
      # get all keys
      cid_tids = sorted([key for key in cid_tid_dict.keys()])
  
      # cluster all trackid
      clu = get_labels(cid_tid_dict, cid_tids)
  
      # relabel every cluster groups
      new_clu = list()
      for c_list in clu:
          new_clu.append([cid_tids[c] for c in c_list])
      cid_tid_label = dict()
      for i, c_list in enumerate(new_clu):
          for c in c_list:
              cid_tid_label[c] = i + 1
      return cid_tid_label
  
imports: from pptracking.python.mot.visualize import plot_tracking
  from python.visualize import visualize_attr
  import os
  import re
  import cv2
  import gc
  import numpy
  import pandas
  from tqdm import tqdm
  from functools import reduce
  import warnings
label_desc: Use image node_id 13 for calling a global function with example usage: sub_cluster(cid_tid_dict) and returns: cid_tid_label