code: def _addrinfo_or_none(contact_point, port):
      
      try:
          return socket.getaddrinfo(contact_point, port,
                                    socket.AF_UNSPEC, socket.SOCK_STREAM)
      except socket.gaierror:
          log.debug('Could not resolve hostname "{}" '
                    'with port {}'.format(contact_point, port))
          return None
docs: A helper function that wraps socket.getaddrinfo and returns None
      when it fails to, e.g. resolve one of the hostnames. Used to address
      PYTHON-895.