code: def joint_stracks(tlista, tlistb):
      exists = {}
      res = []
      for t in tlista:
          exists[t.track_id] = 1
          res.append(t)
      for t in tlistb:
          tid = t.track_id
          if not exists.get(tid, 0):
              exists[tid] = 1
              res.append(t)
      return res
  
imports: import numpy
  from collections import defaultdict
  from collections import deque, OrderedDict
  from ..matching import jde_matching
label_desc: Use image node_id 1 for calling a global function with example usage: joint_stracks(tlista, tlistb) and returns: res