code: def __init__(
      self,
      username: str,
      project_name: str,
      run_id: str,
      api_key: Optional[str] = None,
  ) -> None:
      super().__init__()
      self.username = username
      self.project_name = project_name
      self.run_id = run_id
      self._api_key = api_key
      self._run: Optional[wandb.Run] = None
  
file_path: pytorch-lightning/src/lightning/app/cli/pl-app-template/core/components/logger/weights_and_biases.py
imports: import os
  from typing import TYPE_CHECKING, Dict, List, Optional
  from lightning.app import LightningFlow
label_desc: Use image node_id 1 to create a new WeightsAndBiases object from inherited base classes: LightningFlow with example: obj = WeightsAndBiases(username, project_name, run_id, api_key)