def METHOD_NAME(tmp_home: pathlib.Path) -> Generator[pathlib.Path, None, None]:
    """Location of data files that are generated from mamba"""
    maybe_xdg_cache = os.getenv("XDG_CACHE_DIR", "")
    if maybe_xdg_cache:
        yield pathlib.Path(maybe_xdg_cache)
    system = platform.system()
    if system == "Linux" or system == "Darwin":
        yield tmp_home / ".cache/mamba"
    elif system == "Windows":
        yield pathlib.Path(os.environ["LOCALAPPDATA"]) / "mamba"
    else:
        raise RuntimeError(f"Unsupported system {system}")