code: def add_and_set_learner(self, learner):
      self.loss_values[learner.uid] = {
          "train": {},
          "validation": {},
          "iters": [],
      }
      for metric in self.metrics:
          self.loss_values[learner.uid]["train"][metric.name] = []
          self.loss_values[learner.uid]["validation"][metric.name] = []
  
      self.current_learner_uid = learner.uid
  
file_path: mljar-supervised/supervised/callbacks/metric_logger.py
imports: import logging
  import numpy
  from supervised.callbacks.callback import Callback
  from supervised.utils.metric import Metric
label_desc: Use image node_id 2 for calling the MetricLogger obj's underlying member method code with example usage: obj.add_and_set_learner(learner) without return types