code: def remove_duplicate_stracks(stracksa, stracksb):
      pdist = matching.iou_distance(stracksa, stracksb)
      pairs = np.where(pdist < 0.15)
      dupa, dupb = list(), list()
      for p, q in zip(*pairs):
          timep = stracksa[p].frame_id - stracksa[p].start_frame
          timeq = stracksb[q].frame_id - stracksb[q].start_frame
          if timep > timeq:
              dupb.append(q)
          else:
              dupa.append(p)
      resa = [t for i, t in enumerate(stracksa) if not i in dupa]
      resb = [t for i, t in enumerate(stracksb) if not i in dupb]
      return resa, resb
  
imports: import numpy
  from collections import deque, OrderedDict
  from ..matching import jde_matching
  from ppdet.core.workspace import register, serializable
label_desc: Use image node_id 3 for calling a global function with example usage: remove_duplicate_stracks(stracksa, stracksb) and returns: resa,  resb