class_docstr: Inner class of _WandbSetup.
class_docstr_tok: ["Inner","class","of","_WandbSetup","."]
code: def __init__(
      self,
      pid: int,
      settings: Optional[Settings] = None,
      environ: Optional[Dict[str, Any]] = None,
  ) -> None:
      self._environ = environ or dict(os.environ)
      self._sweep_config: Optional[Dict[str, Any]] = None
      self._config: Optional[Dict[str, Any]] = None
      self._server: Optional[server.Server] = None
      self._manager: Optional[wandb_manager._Manager] = None
      self._pid = pid
  
      # keep track of multiple runs, so we can unwind with join()s
      self._global_run_stack: List[wandb_run.Run] = []
  
      # TODO(jhr): defer strict checks until settings are fully initialized
      #            and logging is ready
      self._early_logger = _EarlyLogger()
      _set_logger(self._early_logger)
  
      self._settings = self._settings_setup(
          settings, self._early_logger
      )
      # self._settings.freeze()
  
      wandb.termsetup(self._settings, logger)
  
      self._check()
      self._setup()
  
      tracelog_mode = self._settings._tracelog
      if tracelog_mode:
          tracelog.enable(tracelog_mode)
  
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__WandbSetup object  with example: obj = _WandbSetup__WandbSetup(pid, settings, environ)