def is_url(name):
    # type: (Union[str, Text]) -> bool
    """
    Return true if the name looks like a URL.
    """
    scheme = get_url_scheme(name)
    if scheme is None:
        return False
    return scheme in ['http', 'https', 'file', 'ftp'] + vcs.all_schemes

    Return true if the name looks like a URL.
    
product/gradle-plugin/src/main/python/pip/_internal/vcs/versioncontrol.py