Write a simple function to validate an email address.
Implement validate_email(email) to return True when the string has a valid simple structure and False otherwise. Accept local parts containing letters, digits, ., _, %, +, and -; require exactly one @, a nonempty local part, and a domain containing valid dot-separated labels. Reject whitespace, consecutive dots, leading or trailing dots, and labels beginning or ending with -.
Examples: "qa.user@example.com" returns True; "qa@@example.com" returns False.
The input is a string, and the output is a Boolean.
def validate_email(email):