code: def save(path, name, obj):
      """Utility for saving to cache"""
      if isinstance(path, str):
          f = os.path.join(path, name)
          pickle_save(obj, f)
      elif isinstance(path, list):
          path.append((name, obj))
  
file_path: mlens/mlens/parallel/_base_functions.py
imports: from __future__ import division
  import os
  import warnings
  from scipy.sparse import issparse
  import numpy
  from ..utils import pickle_load, pickle_save, load
  from ..utils.exceptions import MetricWarning, ParameterChangeWarning
label_desc: Use image node_id 2 for calling a global function with example usage: save(path, name, obj) without return types