code: def compare_dataframes(gts, ts):
      """Builds accumulator for each sequence."""
      accs = []
      names = []
      for k, tsacc in ts.items():
          print("Comparing ", k, "...")
          if k in gts:
              accs.append(
                  mm.utils.compare_to_groundtruth(
                      gts[k], tsacc, "iou", distth=0.5
                  )
              )
              names.append(k)
  
      return accs, names
  
imports: import os
  import numpy
  from rich import print
  from rich.progress import track
  from norfair import Detection
  from collections import OrderedDict
label_desc: Use image node_id 2 for calling a global function with example usage: compare_dataframes(gts, ts) and returns: accs,  names