code: def get(self, mode, metric):
      
      if mode not in self._values:
        logging.info("Metric %s not found for mode %s", metric, mode)
        return []
      return list(self._values[mode][metric])
docs: Get the history for the given metric and mode.