code: def __init__(self, settings: "Settings") -> None:
      from wandb.sdk.service import service
  
      self._settings = settings
      self._atexit_lambda = None
      self._hooks = None
  
      self._service = service._Service(settings=self._settings)
      token = _ManagerToken.from_environment()
      if not token:
          self._service.start()
          host = "localhost"
          transport = "tcp"
          port = self._service.sock_port
          assert port
          token = _ManagerToken.from_params(
              transport=transport, host=host, port=port
          )
          token.set_environment()
          self._atexit_setup()
  
      self._token = token
  
      try:
          self._service_connect()
      except ManagerConnectionError as e:
          wandb._sentry.reraise(e)
  
imports: import atexit
  import os
  from typing import TYPE_CHECKING, Any, Callable, Dict, Optional
  import psutil
  import wandb
  from wandb import env, trigger
  from wandb.errors import Error
  from wandb.sdk.lib.exit_hooks import ExitHooks
  from wandb.sdk.lib.import_hooks import unregister_all_post_import_hooks
label_desc: Use image node_id 2 to create a new _Manager object  with example: obj = _Manager(settings)