input: Write a function to validate a list of email addresses.
  assert validate_mail_list(['test@example.com', 'user@domain.co', 'name@company.net']) == True
  assert validate_mail_list(['invalid-email', 'user@.com', 'name@company']) == False
  assert validate_mail_list(['valid@example.com', 'also.valid@domain.org']) == True
output: def validate_mail_list(emails):
      import re
      pattern = r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$'
      return all(re.match(pattern, email) for email in emails)