def is_valid_url(url: str) -> bool:
    """Check if a url is valid.

    Args:
        url: The Url to check.

    Returns:
        Whether url is valid.
    """
    result = urlparse(url)
    return all([result.scheme, result.netloc])
Check if a url is valid.

    Args:
        url: The Url to check.

    Returns:
        Whether url is valid.
    
reflex/compiler/utils.py