class_docstr: Work around for Python 2, for which pickle fails on instance method.
code: def __init__(self, func):
      self.func = func
      self.func_name = func.__name__ + "_shelved"
  
file_path: nilearn/nilearn/_utils/cache_mixin.py
imports: import os
  import warnings
  from joblib import Memory
  import nilearn
  from .helpers import stringify_path
label_desc: Use image node_id 1 to create a new _ShelvedFunc object  with example: obj = _ShelvedFunc(func)