code: def cached(method=None, name=None, ignore_args=False):
      """A decorator allowing for specifying the name of a cache, allowing it to be modified elsewhere."""
      if ignore_args:
          return _cached_ignore_args(method=method, name=name)
      else:
          return _cached(method=method, name=name)
  
file_path: gpytorch/gpytorch/utils/memoize.py
imports: import functools
  import pickle
  from .errors import CachingError
label_desc: Use image node_id 1 for calling a global function with example usage: cached(method, name, ignore_args) and returns: _cached_ignore_args, _cached