<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def validate_email(email, partial_match=False):
 """Perform email address validation True False True Args: email (str):
 Email address to match partial_match (bool):
 If False (default), the entire string must be a valid email address. If true, any valid email address in the string will trigger a valid response Returns: True if the value contains an email address, else False """

    rgx = re.compile(RGX_EMAIL_VALIDATION_PATTERN, re.I)
    if partial_match:
        return rgx.search(email) is not None
    else:
        return rgx.match(email) is not None