def is_url(path):
    """
    Whether path is URL.
    Args:
        path (string): URL string or not.
    """
    return path.startswith('http://') \
            or path.startswith('https://') \
            or path.startswith('ppdet://')

    Whether path is URL.
    Args:
        path (string): URL string or not.
    
ppdet/utils/checkpoint.py