class_docstr: RedisTimeSeries Commands.
docstr: # noqa
  Get the last sample of `key`.
  `latest` used when a time series is a compaction, reports the compacted
  value of the latest (possibly partial) bucket
  
  For more information: https://redis.io/commands/ts.get/
code: def get(self, key: KeyT, latest: Optional[bool] = False):
      """# noqa
      Get the last sample of `key`.
      `latest` used when a time series is a compaction, reports the compacted
      value of the latest (possibly partial) bucket
  
      For more information: https://redis.io/commands/ts.get/
      """  # noqa
      params = [key]
      self._append_latest(params, latest)
      return self.execute_command(GET_CMD, *params)
  
imports: from typing import Dict, List, Optional, Tuple, Union
  from redis.exceptions import DataError
  from redis.typing import KeyT, Number
label_desc: Use image node_id 16 for calling the TimeSeriesCommands obj's underlying member method code with example usage: obj.get(key, latest) and returns: self