code: def combin_feature(cid_tid_dict, sub_cluster):
      for sub_ct in sub_cluster:
          if len(sub_ct) < 2:
              continue
          mean_feat = np.array(
              [cid_tid_dict[i]["mean_feat"] for i in sub_ct]
          )
          for i in sub_ct:
              cid_tid_dict[i]["mean_feat"] = mean_feat.mean(axis=0)
      return cid_tid_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 23 for calling a global function with example usage: combin_feature(cid_tid_dict, sub_cluster) and returns: cid_tid_dict