code: def load_gt_from_file(gt_file):
      if not os.path.exists(gt_file):
          raise ValueError(
              "The log file {} does not exists!".format(gt_file)
          )
      with open(gt_file, "r") as f:
          data = f.readlines()
          f.close()
      parser_gt = {}
      for line in data:
          image_name, result = line.strip("\n").split("\t")
          image_name = image_name.split("/")[-1]
          try:
              result = json.loads(result)
          except:
              result = np.array(
                  [int(r) for r in result.split()]
              ).reshape(-1, 4)
          parser_gt[image_name] = result
      return parser_gt
  
file_path: PaddleOCR/test_tipc/compare_results.py
imports: import numpy
  import os
  import subprocess
  import json
  import argparse
  import glob
label_desc: Use image node_id 5 for calling a global function with example usage: load_gt_from_file(gt_file) and returns: parser_gt