code: def temp_cache(
      tmp_path: Path, local_cache_creator: Callable
  ) -> LocalTrainingCache:
      return local_cache_creator(tmp_path)
  
imports: from pathlib import Path
  from typing import Callable
  from _pytest.monkeypatch import MonkeyPatch
  import pytest
  from rasa.engine.caching import LocalTrainingCache
label_desc: Use image node_id 1 for calling a global function with example usage: temp_cache(tmp_path, local_cache_creator) and returns: local_cache_creator