def METHOD_NAME(url):
    """
    Helper function used to check if a string is a valid url.
    Args:
        url (str): the url string to be validated
    Returns:
        bool: whether the url is valid or not
    """
    validate = URLValidator()
    try:
        validate(url)
        return True
    except ValidationError:
        return False