def validate_email_with_name(value):
    """
    Validate email address.

    Both "Recipient Name <email@example.com>" and "email@example.com" are valid.
    """
    value = force_text(value)

    if '<' or '>' in value:
        start = value.find('<') + 1
        end = value.find('>')
        if start < end:
            recipient = value[start:end]
    else:
        recipient = value

    validate_email(recipient)
dataset/ETHPy150Open ui/django-post_office/post_office/validators.py/validate_email_with_name/operator `and` -> `or`