def METHOD_NAME(url):
    bn = os.path.basename(url)
    if (
        url.startswith("https://pypi.io")
        or url.startswith("https://files.pythonhosted.org")
    ) and ("{{ version }}" in bn and "{{ name" not in bn):
        yield os.path.join(os.path.dirname(url), "{{ name }}-{{ version }}.tar.gz")
    yield url