def METHOD_NAME(url: str, dest: str):
    from requests import get
    import subprocess
    print("downloading " + dest + " from\n    " + url, file=sys.stderr)
    # offline mode
    if len(__offline) > 0:
        file_name = P.basename(dest)
        assert url == __offline[file_name]['url']
        fin = subprocess.run(['md5sum', dest], stdout=subprocess.PIPE)
        assert __offline[file_name]['md5'] == \
            fin.stdout.decode('utf-8').split(" ")[0]
        return __offline[file_name]['version']
    proxies=dict()
    if "PROXY" in os.environ.keys():
        proxy_url = os.environ["PROXY"]
        proxies = { "http": proxy_url, "https": proxy_url, "ftp": proxy_url }
    # online mode
    with open(dest, "wb") as f:
        response = get(url, proxies=proxies)
        f.write(response.content)
        return None