code: def metrics_for_mode(self, mode):
      
      if mode not in self._values:
        logging.info("Mode %s not found", mode)
        return []
      return sorted(list(self._values[mode].keys()))
docs: Metrics available for a given mode.