code: def get_sum(name, result_dict):
      return sum(
          x[name][0]
          for x in result_dict.values()
          if x["num_frames"][0] != 0
      )
  
file_path: gluon-cv/scripts/tracking/smot/helper.py
imports: import motmetrics
  import numpy
  import os
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: get_sum(name, result_dict) and returns: sum