code: def read_mcmot_results(filename, is_gt, is_ignore):
      results_dict = dict()
      if os.path.isfile(filename):
          with open(filename, "r") as f:
              for line in f.readlines():
                  linelist = line.strip().split(",")
                  if len(linelist) < 7:
                      continue
                  fid = int(linelist[0])
                  if fid < 1:
                      continue
                  cid = int(linelist[7])
                  if is_gt:
                      score = 1
                      # only for test use
                      cid -= 1
                  else:
                      score = float(linelist[6])
  
                  cls_result_dict = results_dict.setdefault(cid, dict())
                  cls_result_dict.setdefault(fid, list())
  
                  tlwh = tuple(map(float, linelist[2:6]))
                  target_id = int(linelist[1])
                  cls_result_dict[fid].append((tlwh, target_id, score))
      return results_dict
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import copy
  import sys
  import math
  from collections import defaultdict
  import numpy
  import pandas
  from .metrics import Metric
  from ppdet.utils.logger import setup_logger
label_desc: Use image node_id 4 for calling a global function with example usage: read_mcmot_results(filename, is_gt, is_ignore) and returns: results_dict