input: 
  def validate_mail_list(mail_list: List[str]) -> bool:
      """
      Validate a list of email addresses and return True if all emails are valid, otherwise False.
      >>> validate_mail_list(["example.user@gmail.com", "bad@example"])
      False
      >>> validate_mail_list(["user@domain.com", "user.name@sub.domain.com"])
      True
      """
      for mail in mail_list:
          if not re.match("[^@]+@[^@]+\.[^@]+", mail):
              return False
      return True
  
output:     
      import re
  