code: def _cached(func, store):
      def wrapper(self, *args, **kwargs):
          cache = kwargs.pop("cache", False)
          if not cache:
              return func(self, *args, **kwargs)
  
          key = store.key(instance=self, caller=func, *args, **kwargs)
          if key not in store:
              store[key] = func(self, *args, **kwargs)
          return store[key]
  
      return wrapper
  
imports: import os
  import lore
  from lore.stores.disk import Disk
  from lore.stores.ram import Ram
label_desc: Use image node_id 3 for calling a global function with example usage: _cached(func, store) and returns: wrapper, store, func