code: def pop_from_cache(obj, name, *args, **kwargs):
      """Pop an item from the cache (honoring calling args)."""
      try:
          return obj._memoize_cache.pop(
              (name, args, pickle.dumps(kwargs))
          )
      except (KeyError, AttributeError):
          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 4 for calling a global function with example usage: pop_from_cache(obj, name) and returns: obj