def METHOD_NAME(packages: list, pyver: str, platform: str) -> List[str]:
    """Get the most recent successful nightly wheels. Return List[str] """
    curr_date = date.today()
    date_limit = curr_date - timedelta(days=365)
    while curr_date >= date_limit:
        wheels = get_nightly_wheel_urls(packages, curr_date, py_version=pyver, platform_version=platform)
        if wheels:
            return wheels
        curr_date = curr_date - timedelta(days=1)
    # Can't find any valid pytorch package
    return None