<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_email_domain(emailaddr):
 """ Return the domain component of an email address. Returns None if the provided string cannot be parsed as an email address. 'example.com' 'example.com' 'example.com' 'bar' """

    realname, address = email.utils.parseaddr(emailaddr)
    try:
        username, domain = address.split('@')
        if not username:
            return None
        return domain or None
    except ValueError:
        return None