code: def get_sim_matrix_new(cid_tid_dict, cid_tids):
      # Note: camera independent get_sim_matrix function,
      # which is different from the one in camera_utils.py.
      count = len(cid_tids)
  
      q_arr = np.array(
          [cid_tid_dict[cid_tids[i]]["mean_feat"] for i in range(count)]
      )
      g_arr = np.array(
          [cid_tid_dict[cid_tids[i]]["mean_feat"] for i in range(count)]
      )
      # compute distmat
      distmat = get_dist_mat(q_arr, g_arr, func_name="cosine")
  
      # mask the element which belongs to same video
      st_mask = np.ones((count, count), dtype=np.float32)
      st_mask = intracam_ignore(st_mask, cid_tids)
  
      sim_matrix = distmat * st_mask
      np.fill_diagonal(sim_matrix, 0.0)
      return 1.0 - sim_matrix
  
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 9 for calling a global function with example usage: get_sim_matrix_new(cid_tid_dict, cid_tids) and returns: unknown