code: def format_reading(self, reading, major=DEFAULT_KATCP_MAJOR):
          
  
          timestamp, status, value = reading
          return (self.TIMESTAMP_TYPE.encode(timestamp, major),
                  self.STATUSES[status],
                  self._formatter(value, True, major))
docs: Format sensor reading as (timestamp, status, value) tuple of strings.
  
          All values are strings formatted as specified in the Sensor Type
          Formats in the katcp specification.
  
          Parameters
          ----------
          reading : :class:`Reading` object
              Sensor reading as returned by :meth:`read`
          major : int
              Major version of KATCP to use when interpreting types.
              Defaults to latest implemented KATCP version.
  
          Returns
          -------
          timestamp : str
              KATCP formatted timestamp string
          status : str
              KATCP formatted sensor status string
          value : str
              KATCP formatted sensor value
  
          Note
          ----
          Should only be used for a reading obtained from the same sensor.