def METHOD_NAME(url):
    """
    Downloads a checkpoint by URL and returns the path where it was downloaded
    :param url: URL to download a checkpoint from
    :return: path where the checkpoint was downloaded
    """
    if not CACHE_MODELS_PATH.exists():
        CACHE_MODELS_PATH.mkdir(parents=True)
    download_path = CACHE_MODELS_PATH / url.split("/")[-1]
    if not download_path.exists():
        print("Downloading checkpoint ...")
        checkpoint = requests.get(url)
        with open(download_path, "wb") as f:
            f.write(checkpoint.content)
    return str(download_path)