code: def load(file, **kwds):
      """load an object that was stored with dill.temp.dump
  
      file: filehandle
      mode: mode to open the file, one of: {'r', 'rb'}
  
      >>> dumpfile = dill.temp.dump([1, 2, 3, 4, 5])
      >>> dill.temp.load(dumpfile)
      [1, 2, 3, 4, 5]
      """
      import dill as pickle
  
      mode = kwds.pop("mode", "rb")
      name = getattr(
          file, "name", file
      )  # name=file.name or name=file (if str)
      return pickle.load(open(name, mode=mode, **kwds))
  
file_path: dill/dill/temp.py
imports: import contextlib
label_desc: Use image node_id 5 for calling a global function with example usage: load(file) and returns: pickle