def METHOD_NAME(request: pytest.FixtureRequest, cache_dir: Path):
    param = getattr(request, "param", {})
    filename = param.get("filename", "cache.json")
    key_prefix = param.get("key_prefix", None)
    METHOD_NAME = Cache(filename, key_prefix=key_prefix)
    assert METHOD_NAME.filename == cache_dir / filename
    # noinspection PyProtectedMember
    assert not METHOD_NAME._cache
    return METHOD_NAME