code: def validate_confusables_email(value):
      
      if '@' not in value:
          return
      local_part, domain = value.split('@')
      if confusables.is_dangerous(local_part) or \
         confusables.is_dangerous(domain):
          raise ValidationError(CONFUSABLE_EMAIL, code='invalid')
docs: Validator which disallows 'dangerous' email addresses likely to
      represent homograph attacks.
  
      An email address is 'dangerous' if either the local-part or the
      domain, considered on their own, are mixed-script and contain one
      or more characters appearing in the Unicode Visually Confusable
      Characters file.