code: def collect_predict_from_logs(log_path, key_list):
      log_list = glob.glob(log_path)
      pred_collection = {}
      for log_f in log_list:
          pred_dict = parser_results_from_log_by_name(log_f, key_list)
          key = os.path.basename(log_f)
          pred_collection[key] = pred_dict
  
      return pred_collection
  
file_path: PaddleDetection/test_tipc/compare_results.py
imports: import numpy
  import os
  import subprocess
  import json
  import argparse
  import glob
label_desc: Use image node_id 7 for calling a global function with example usage: collect_predict_from_logs(log_path, key_list) and returns: pred_collection