code: def fetch(cls, channel, start, end, bits=None, host=None, port=None,
                verbose=False, connection=None, type=Nds2ChannelType.any()):
          
          new = cls.DictClass.fetch(
              [channel], start, end, host=host, port=port,
              verbose=verbose, connection=connection)[channel]
          if bits:
              new.bits = bits
          return new
docs: Fetch data from NDS into a `StateVector`.
  
          Parameters
          ----------
          channel : `str`, `~gwpy.detector.Channel`
              the name of the channel to read, or a `Channel` object.
  
          start : `~gwpy.time.LIGOTimeGPS`, `float`, `str`
              GPS start time of required data,
              any input parseable by `~gwpy.time.to_gps` is fine
  
          end : `~gwpy.time.LIGOTimeGPS`, `float`, `str`
              GPS end time of required data,
              any input parseable by `~gwpy.time.to_gps` is fine
  
          bits : `Bits`, `list`, optional
              definition of bits for this `StateVector`
  
          host : `str`, optional
              URL of NDS server to use, defaults to observatory site host
  
          port : `int`, optional
              port number for NDS server query, must be given with `host`
  
          verify : `bool`, optional, default: `True`
              check channels exist in database before asking for data
  
          connection : `nds2.connection`
              open NDS connection to use
  
          verbose : `bool`, optional
              print verbose output about NDS progress
  
          type : `int`, optional
              NDS2 channel type integer
  
          dtype : `type`, `numpy.dtype`, `str`, optional
              identifier for desired output data type