code: def read_pred_file(filepath):
      with open(filepath, "r") as f:
          lines = f.readlines()
          img_file = lines[0].rstrip("\n\r")
          lines = lines[2:]
  
      boxes = np.array(
          list(
              map(
                  lambda x: [
                      float(a) for a in x.rstrip("\r\n").split(" ")
                  ],
                  lines,
              )
          )
      ).astype("float")
      return img_file.split("/")[-1], boxes
  
imports: from __future__ import absolute_import
  import os
  import tqdm
  import pickle
  import datetime
  import argparse
  import numpy
  from scipy.io import loadmat
label_desc: Use image node_id 8 for calling a global function with example usage: read_pred_file(filepath) and returns: img_file,  boxes