class_docstr: Wandb singleton class.
  
  Note: This is a process local singleton.
  (Forked processes will get a new copy of the object)
class_docstr_tok: ["Wandb","singleton","class",".","Note",":","This","is","a","process","local","singleton",".","(","Forked","processes","will","get","a","new","copy","of","the","object",")"]
code: def __init__(self, settings: Optional[Settings] = None) -> None:
      pid = os.getpid()
      if _WandbSetup._instance and _WandbSetup._instance._pid == pid:
          _WandbSetup._instance._update(settings=settings)
          return
      _WandbSetup._instance = _WandbSetup__WandbSetup(
          settings=settings, pid=pid
      )
  
imports: import logging
  import os
  import sys
  import threading
  from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union
  import wandb
  from .None import wandb_manager, wandb_settings
  from .lib import config_util, server, tracelog
label_desc: Use image node_id 1 to create a new _WandbSetup object  with example: obj = _WandbSetup(settings)