input: from typing import List
  
  def validate_mail_list(mail_list: List[str]) -> bool:
      """
      Validate a list of email addresses to ensure they are all in a correct format.
      The function uses a regular expression to check each email address.
      >>> validate_mail_list(["example.user@gmail.com", "bad@example"])
      False
      >>> validate_mail_list(["user.name@domain.com", "another.user@domain.org"])
      True
      """
      import re
      for mail in mail_list:
          if not re.match("[^@]+@[^@]+\.[^@]+", mail):
              return False
      return True
output:     import re
      for mail in mail_list:
          if not re.match("[^@]+@[^@]+\.[^@]+", mail):
              return False
      return True