import socket


def _validate_as_ipv6(text: str) -> bool:
    """
    A helper function for verifying that a string represents an IPv6 address.

    :param text: the string to verify.
    :return: `True` if the string looks like an IPv6 address or `False` if not.
    """
    try:
        socket.inet_pton(socket.AF_INET6, text)
        return True
    except socket.error:
        return False