code: def pickle_load(path, prefix="end2end"):
      if os.path.isfile(path):
          data = pickle.load(open(path, "rb"))
      elif os.path.isdir(path):
          data = dict()
          search_path = os.path.join(path, "{}_*.pkl".format(prefix))
          pkls = glob.glob(search_path)
          for pkl in pkls:
              this_data = pickle.load(open(pkl, "rb"))
              data.update(this_data)
      else:
          raise ValueError
      return data
  
imports: import os
  import re
  import cv2
  import glob
  import copy
  import math
  import pickle
  import numpy
  from shapely.geometry import Polygon, MultiPoint
label_desc: Use image node_id 4 for calling a global function with example usage: pickle_load(path, prefix) and returns: data