<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_rfc2822(instance: str):
 """Validates RFC2822 format"""

    if not isinstance(instance, str):
        return True
    return email.utils.parsedate(instance) is not None