code: def _GetSocket(self):
      
      try:
        return socket.create_connection(
            (self._host, self._port), self._SOCKET_TIMEOUT)
  
      except socket.error as exception:
        logger.error(
            'Unable to connect to nsrlsvr with error: {0!s}.'.format(exception))
docs: Establishes a connection to an nsrlsvr instance.
  
      Returns:
        socket._socketobject: socket connected to an nsrlsvr instance or None if
            a connection cannot be established.