code: def _cache_wrap(
      name: str, loader: Callable[[], Any], *, file_type: str
  ) -> Any:
      path = _get_cache_path(name, file_type)
      if path.exists():
          return _cache_load(path, file_type)
      else:
          value = loader()
          _cache_save(path, value, file_type)
  
          return value
  
file_path: labml/client/labml/utils/cache.py
imports: import functools
  import json
  import pickle
  from pathlib import Path
  from typing import Callable, Any, Optional
  from labml import lab
label_desc: Use image node_id 4 for calling a global function with example usage: _cache_wrap(name, loader) and returns: _cache_load, value