<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_ipv6(addr):
 """Checks if a given address is an IPv6 address."""

    try:
        socket.inet_pton(socket.AF_INET6, addr)
        return True
    except socket.error:
        return False