async def METHOD_NAME(self, host: str, port: int, *, family: int):
    e = socket.gaierror()
    e.errno = socket.EAI_NONAME
    if family == socket.AF_INET:
        if host == "dns.google":
            return [(socket.AF_INET, None, None, None, ("8.8.8.8", port))]
    elif family == socket.AF_INET6:
        if host == "dns.google":
            return [
                (
                    socket.AF_INET6,
                    None,
                    None,
                    None,
                    ("2001:4860:4860::8888", port, None, None),
                )
            ]
    else:
        e.errno = socket.EAI_FAMILY
    raise e