input: Write a function that takes a list of email addresses as input and validates each email. The function should return True if all emails are valid, otherwise it should return False. An email is considered valid if it matches the pattern "[^@]+@[^@]+\.[^@]+". If the input list is empty, the function should return True.
  
  def validate_mail_list(mail_list):
      for mail in mail_list:
          if not re.match("[^@]+@[^@]+\.[^@]+", mail):
              return False
      return True
  
  assert validate_mail_list(["example.user@gmail.com"]) == True
  assert validate_mail_list(["example.user@gmail", "bad@example"]) == False
  assert validate_mail_list([]) == True
output: def validate_mail_list(mail_list):
      for mail in mail_list:
          if not re.match("[^@]+@[^@]+\.[^@]+", mail):
              return False
      return True