code: def _unpickle(fobj, filename="", mmap_mode=None):
      """Internal unpickling function."""
      # We are careful to open the file handle early and keep it open to
      # avoid race-conditions on renames.
      # That said, if data is stored in companion files, which can be
      # the case with the old persistence format, moving the directory
      # will create a race when joblib tries to access the companion
      # files.
      unpickler = NumpyUnpickler(filename, fobj, mmap_mode=mmap_mode)
      obj = None
      try:
          obj = unpickler.load()
          if unpickler.compat_mode:
              warnings.warn(
                  "The file '%s' has been generated with a "
                  "joblib version less than 0.10. "
                  "Please regenerate this pickle file." % filename,
                  DeprecationWarning,
                  stacklevel=3,
              )
      except UnicodeDecodeError as exc:
          # More user-friendly error message
          if PY3_OR_LATER:
              new_exc = ValueError(
                  "You may be trying to read with "
                  "python 3 a joblib pickle generated with python 2. "
                  "This feature is not supported by joblib."
              )
              new_exc.__cause__ = exc
              raise new_exc
          # Reraise exception with Python 2
          raise
  
      return obj
  
imports: import pickle
  import os
  import sys
  import warnings
  from .numpy_pickle_utils import _COMPRESSORS
  from .numpy_pickle_utils import BinaryZlibFile
  from .numpy_pickle_utils import Unpickler, Pickler
  from .numpy_pickle_utils import _read_fileobject, _write_fileobject
  from .numpy_pickle_utils import _read_bytes, BUFFER_SIZE
  from .numpy_pickle_compat import load_compatibility
  from .numpy_pickle_compat import NDArrayWrapper
  from .numpy_pickle_compat import ZNDArrayWrapper
  from ._compat import _basestring, PY3_OR_LATER
label_desc: Use image node_id 2 for calling a global function with example usage: _unpickle(fobj, filename, mmap_mode) and returns: obj