input: Write a function to validate a list of emails. The function should return True if all email addresses in the given list are valid, otherwise return False. An email is considered valid if it matches the pattern "[^@]+@[^@]+\.[^@]+". 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(["user1@domain.com", "user2@domain.com"])==True
  assert validate_mail_list(["user@domain", "user@domain.com"])==False
  assert validate_mail_list(["user@domain.com"])==True
  assert validate_mail_list([])==True
output: def validate_mail_list(emails):
      if not emails:
          return True
      pattern = r"[^@]+@[^@]+\.[^@]+"
      for email in emails:
          if not re.match(pattern, email):
              return False
      return True