code: def add_to_cache(obj, name, val, *args, **kwargs):
      """Add a result to the cache of an object (honoring calling args)."""
      return _add_to_cache(
          obj, name, val, *args, kwargs_pkl=pickle.dumps(kwargs)
      )
  
file_path: gpytorch/gpytorch/utils/memoize.py
imports: import functools
  import pickle
  from .errors import CachingError
label_desc: Use image node_id 2 for calling a global function with example usage: add_to_cache(obj, name, val) and returns: _add_to_cache