code: def __init__(
      self,
      project=None,
      name=None,
      id=None,
      entity=None,
      save_dir=None,
      config=None,
      **kwargs,
  ):
      try:
          import wandb
  
          self.wandb = wandb
      except ModuleNotFoundError:
          raise ModuleNotFoundError(
              "Please install wandb using `pip install wandb`"
          )
  
      self.project = project
      self.name = name
      self.id = id
      self.save_dir = save_dir
      self.config = config
      self.kwargs = kwargs
      self.entity = entity
      self._run = None
      self._wandb_init = dict(
          project=self.project,
          name=self.name,
          id=self.id,
          entity=self.entity,
          dir=self.save_dir,
          resume="allow",
      )
      self._wandb_init.update(**kwargs)
  
      _ = self.run
  
      if self.config:
          self.run.config.update(self.config)
  
file_path: PaddleOCR/ppocr/utils/loggers/wandb_logger.py
imports: import os
  from .base_logger import BaseLogger
label_desc: Use image node_id 1 to create a new WandbLogger object from inherited base classes: BaseLogger with example: obj = WandbLogger(project, name, id, entity, save_dir, config)