code: def make_cache(request: FixtureRequest) -> Callable[[str], Cache]:
      """Gives the access to a cache."""
      pytest_cache = request.config.cache
      assert pytest_cache is not None
  
      cache_dir = pytest_cache.mkdir(AUTOSKLEARN_CACHE_NAME)
      return partial(Cache, cache_dir=cache_dir)
  
imports: from __future__ import annotations
  from typing import Any, Callable
  import os
  import pickle
  import shutil
  import tempfile
  from functools import partial
  from pathlib import Path
  from filelock import FileLock
  from pytest import FixtureRequest
  from pytest_cases import fixture
  from test.conftest import AUTOSKLEARN_CACHE_NAME
label_desc: Use image node_id 1 for calling a global function with example usage: make_cache(request) and returns: partial