code: def __call__(self, param):
      """Callback to log training speed and metrics in TensorBoard."""
      if param.eval_metric is None:
          return
      name_value = param.eval_metric.get_name_value()
      for name, value in name_value:
          if self.prefix is not None:
              name = f"{self.prefix}-{name}"
          self.summary_writer.add_scalar(
              name, value, global_step=param.epoch
          )
  
imports: import logging
label_desc: Use image node_id 2 for calling the LogMetricsCallback obj's underlying member method code with example usage: obj.__call__(param) without return types