input: Write a function to validate a list of emails. The function should return a boolean indicating whether a given email address is valid. The function should use the regex pattern "[^@]+@[^@]+\.[^@]+" to check the validity of each email in the list. If all emails are valid, the function should return True, otherwise it should return False. If the list is empty, the function should return True.
  
  assert validate_mail_list(["example.user@gmail.com", "bad@example"])==False
  assert validate_mail_list(["test.user@example.com", "another.user@domain.com"])==True
output: def validate_mail_list(emails):
      import re
      pattern = re.compile(r"[^@]+@[^@]+\.[^@]+")
      if not emails:
          return True
      for email in emails:
          if not pattern.match(email):
              return False
      return True