code: def test_main_logger_metric_to_name():
      """Test group patterns"""
      logger = MainLogger()
      logger.update(
          {
              "acc": 0.5,
              "val_acc": 0.4,
              "loss": 1.2,
              "val_loss": 1.1,
              "lr": 0.01,
          }
      )
      logger.update(
          {
              "acc": 0.55,
              "val_acc": 0.45,
              "loss": 1.1,
              "val_loss": 1.0,
              "lr": 0.001,
          }
      )
      logger.update(
          {
              "acc": 0.65,
              "val_acc": 0.55,
              "loss": 1.0,
              "val_loss": 0.9,
              "lr": 0.0001,
          }
      )
      metric_to_name = logger.metric_to_name
      assert "lr" not in metric_to_name
      target_metric_to_name = {
          "acc": "training",
          "val_acc": "validation",
          "loss": "training",
          "val_loss": "validation",
      }
      for metric, metric_name in metric_to_name.items():
          assert metric_name == target_metric_to_name.get(metric)
  
file_path: livelossplot/tests/test_main_logger.py
imports: import re
  from livelossplot import MainLogger
label_desc: Use image node_id 4 for calling a global function with example usage: test_main_logger_metric_to_name() without return types