code: def fake_getaddrinfo(
          host, port, family=None, socktype=None, proto=None, flags=None):
      
      return [(socket.AF_INET, socket.SOCK_STREAM, socket.IPPROTO_TCP,
               '', (host, port))]
docs: drop-in replacement for :py:func:`socket.getaddrinfo`