class_docstr: Log using `Weights and Biases`.
  
  Args:
      entity: An entity is a username or team name where you're sending runs.
      config: Configuration for the run.
      project: Name of the W&B project.
  
  Raises:
      ImportError: If wandb package is not installed.
class_docstr_tok: ["Log","using","`","Weights","and","Biases","`",".","Args",":","entity",":","An","entity","is","a","username","or","team","name","where","you","'re","sending","runs",".","config",":","Configuration","for","the","run",".","project",":","Name","of","the","W","&","B","project",".","Raises",":","ImportError",":","If","wandb","package","is","not","installed","."]
code: def __init__(
      self,
      entity: Optional[str] = None,
      config: Optional[Dict] = None,
      project: Optional[str] = None,
  ):
      try:
          import wandb
      except ImportError:
          raise ImportError(
              "To use the Weights and Biases Logger please install wandb."
              "Run `pip install wandb` to install it."
          )
  
      self._wandb = wandb
      self._wandb_init = dict(
          entity=entity, config=config, project=project
      )
      wandb_kwargs = dict(config.training.wandb)
      wandb_kwargs.pop("enabled")
      wandb_kwargs.pop("entity")
      wandb_kwargs.pop("project")
      wandb_kwargs.pop("log_checkpoint")
      self._wandb_init.update(**wandb_kwargs)
  
      self.setup()
  
imports: import collections
  import collections.abc
  import functools
  import json
  import logging
  import os
  import sys
  import time
  from functools import wraps
  from typing import Any, Callable, Dict, Optional, Union
  import torch
  from mmf.common.registry import registry
  from mmf.utils.configuration import get_mmf_env
  from mmf.utils.distributed import get_rank, is_main, is_xla
  from mmf.utils.file_io import PathManager
  from mmf.utils.timer import Timer
  from termcolor import colored
label_desc: Use image node_id 1 to create a new WandbLogger object  with example: obj = WandbLogger(entity, config, project)