def request_temp_dir() -> str:
    """A request-unique directory for storing temporary files"""
    request = _request_var.get()
    if not hasattr(request.state, "temp_dir"):
        request.state.temp_dir = request_tempdir_pool.acquire()
    return request.state.temp_dir
A request-unique directory for storing temporary files
src/bentoml/_internal/context.py