code: def _get_from_cache(obj, name, *args, kwargs_pkl):
      """Get an item from the cache (honoring calling args)."""
      try:
          return obj._memoize_cache[(name, args, kwargs_pkl)]
      except (AttributeError, KeyError):
          raise CachingError(
              "Object does not have item {} stored in cache.".format(
                  name
              )
          )
  
file_path: gpytorch/gpytorch/utils/memoize.py
imports: import functools
  import pickle
  from .errors import CachingError
label_desc: Use image node_id 10 for calling a global function with example usage: _get_from_cache(obj, name) and returns: obj