code: def metric_recorded(self, record):
      if record.is_scalar:
          self.wandb.log({record.name: record.value})
      else:
          if not self._emitted_record_type_warning:
              log.warning(
                  "Logging anything other than scalars to W&B is currently not supported."
              )
              self._emitted_record_type_warning = True
  
file_path: flair/flair/trainers/plugins/loggers/wandb.py
imports: import logging
  from typing import Any, Dict
  from flair.trainers.plugins.base import TrainerPlugin
label_desc: Use image node_id 4 for calling the WandbLogger obj's underlying member method code with example usage: obj.metric_recorded(record) without return types