input: Write a function to validate a list of emails. The function should return a boolean indicating whether a given email address is valid. If the pattern of email is correct according to the most common email format return True else return False. Use regular expressions for validation. If the mail list is empty return True.
  assert validate_mail_list(["example.user@gmail.com", "bad@example"])==False
  assert validate_mail_list(["user.name@domain.com", "another.user@domain.com"])==True
  assert validate_mail_list(["valid@email.com", "invalid.email@"])==False
  assert validate_mail_list([])==True
  assert validate_mail_list(["good.email@address.domain"])==True
output: import re
  
  def validate_mail_list(emails):
      if not emails:
          return True
      pattern = r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$'
      for email in emails:
          if not re.match(pattern, email):
              return False
      return True