code: def _resolve_addr(
      host: str,
      port: int,
      family: socket.AddressFamily = socket.AF_UNSPEC,
  ) -> List[Tuple[int, Any]]:
      # On Solaris, getaddrinfo fails if the given port is not found
      # in /etc/services and no socket type is given, so we must pass
      # one here.  The socket type used here doesn't seem to actually
      # matter (we discard the one we get back in the results),
      # so the addresses we return should still be usable with SOCK_DGRAM.
      addrinfo = socket.getaddrinfo(
          host, port, family, socket.SOCK_STREAM
      )
      results = []
      for fam, socktype, proto, canonname, address in addrinfo:
          results.append((fam, address))
      return results
  
imports: import asyncio
  import concurrent.futures
  import errno
  import os
  import sys
  import socket
  import ssl
  import stat
  from tornado.concurrent import dummy_executor, run_on_executor
  from tornado.ioloop import IOLoop
  from tornado.util import Configurable, errno_from_exception
  from typing import List, Callable, Any, Type, Dict, Union, Tuple, Awaitable, Optional
label_desc: Use image node_id 4 for calling a global function with example usage: _resolve_addr(host, port, family) and returns: results