docstr: Create massages with log_history and massage template
code: def send(self, logger: MainLogger):
      """Create massages with log_history and massage template"""
      log_groups = logger.grouped_log_history()
      self.last_message = "\n".join(self._create_massages(log_groups))
      print(self.last_message)
  
file_path: livelossplot/livelossplot/outputs/extrema_printer.py
imports: from typing import Dict, List
  from livelossplot.main_logger import LogItem
  from livelossplot.main_logger import MainLogger
  from .base_output import BaseOutput
label_desc: Use image node_id 2 for calling the ExtremaPrinter obj's underlying member method code with example usage: obj.send(logger) without return types