code: def metric_recorded(self, record: MetricRecord) -> None:
      record_name = ".".join(record.name)
  
      if record.is_scalar:
          self.logger.report_scalar(
              record_name, record_name, record.value, record.global_step
          )
      elif record.is_scalar_list:
          for i, v in enumerate(record.value):
              self.logger.report_scalar(
                  record_name,
                  f"{record_name}_{i}",
                  v,
                  record.global_step,
              )
      elif record.is_string:
          self.logger.report_text(record.value, print_console=False)
      elif record.is_histogram:
          self.logger.report_histogram(
              record_name, record_name, record.value, record.global_step
          )
  
file_path: flair/flair/trainers/plugins/loggers/clearml_logger.py
imports: from typing import Any
  from flair.trainers.plugins.base import TrainerPlugin
  from flair.trainers.plugins.metric_records import MetricRecord
label_desc: Use image node_id 3 for calling the ClearmlLoggerPlugin obj's underlying member method code with example usage: obj.metric_recorded(record) without return types