code: def open_pickle(pkl_file, USE_SPARK):
      if USE_SPARK:
          from pyspark import SparkFiles
  
          return open(SparkFiles.get(pkl_file), "rb")
      else:
          return open(pkl_file, "rb")
  
file_path: BigDL/python/friesian/example/recall/utils.py
imports: import time
  import os
  import multiprocessing
label_desc: Use image node_id 1 for calling a global function with example usage: open_pickle(pkl_file, USE_SPARK) and returns: open, open