def download_file()

in build.py [0:0]


def download_file(session, url, path):
    """Download a file from a URL to a specified path with a session that has retry logic."""
    try:
        response = session.get(url)
        response.raise_for_status()
        with path.open('wb') as file:
            file.write(response.content)
        return path
    except requests.RequestException as e:
        logging.error(f"Failed to download {url}: {e}")
        return None