code: def __init__(
      self, wandb, emit_alerts=True, alert_level=logging.WARNING
  ) -> None:
      super().__init__()
  
      self.wandb = wandb
      self.emit_alerts = emit_alerts
      self.alert_level = alert_level
      self._emitted_record_type_warning = False
  
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 1 to create a new WandbLogger object from inherited base classes: TrainerPlugin with example: obj = WandbLogger(wandb, emit_alerts, alert_level)