class_docstr: Inner class of _WandbSetup.
class_docstr_tok: ["Inner","class","of","_WandbSetup","."]
code: def _update(
      self,
      settings: Optional[Settings] = None,
  ) -> None:
      if settings is None:
          return
      # self._settings.unfreeze()
      if isinstance(settings, wandb_settings.Settings):
          # todo: check the logic here. this _only_ comes up in tests?
          self._settings._apply_settings(settings)
      elif isinstance(settings, dict):
          # if it is a mapping, update the settings with it
          self._settings.update(
              settings, source=wandb_settings.Source.SETUP
          )
  
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 3 for calling the _WandbSetup__WandbSetup obj's underlying member method code with example usage: obj._update(settings) without return types