code: def compute_average(iter_dict):
      i = 0
      total_speed = 0
      for iter in iter_dict:
          i += 1
          total_speed += iter_dict[iter]
      return round(total_speed / i, 2)
  
file_path: insightface/recognition/arcface_paddle/tools/extract_perf_logs.py
imports: import os
  import re
  import sys
  import glob
  import json
  import argparse
  import pprint
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: compute_average(iter_dict) and returns: round