def METHOD_NAME(user: str, project: str, version: str) -> str:
    """
    Download a github release tarball of the given project.
    """
    project_url = f"https://github.com/{user}/{project}"
    tarball_url = f"{project_url}/archive/v{version}.tar.gz"
    local_path = f"{project}-{version}.tar.gz"
    urllib.request.urlretrieve(
        tarball_url,
        local_path
    )
    return local_path