def METHOD_NAME(url, outdir=os.path.dirname(__file__)):
    """Download a file from the given URL and save it to the specified output directory.
    Args:
    ----
    url (str): The URL of the file to download.
    outdir (str): The output directory to save the downloaded file.
    Returns
    -------
        None
    """
    basename = url.split("/")[-1]
    local_filename = os.path.join(outdir, basename)
    if os.path.isfile(local_filename):
        return
    # NOTE the stream=True parameter below
    with requests.get(url, stream=True) as r:
        r.raise_for_status()
        print(f"downloading {basename} ..")
        with open(local_filename, "wb") as f:
            for chunk in r.iter_content(chunk_size=8192):
                # If you have chunk encoded response uncomment if
                # and set chunk_size parameter to None.
                # if chunk:
                f.write(chunk)