code: def connect(host, port=None):
      
      import nds2
      # pylint: disable=no-member
  
      # set default port for NDS1 connections (required, I think)
      if port is None and NDS1_HOSTNAME.match(host):
          port = 8088
  
      if port is None:
          return nds2.connection(host)
      return nds2.connection(host, port)
docs: Open an `nds2.connection` to a given host and port
  
      Parameters
      ----------
      host : `str`
          name of server with which to connect
  
      port : `int`, optional
          connection port
  
      Returns
      -------
      connection : `nds2.connection`
          a new open connection to the given NDS host