class_docstr: Global W&B settings stored under $WANDB_CONFIG_DIR/settings.
class_docstr_tok: ["Global","W","&","B","settings","stored","under","$","WANDB_CONFIG_DIR\/settings","."]
docstr: Persist settings to disk if persist = True
docstr_tok: ["Persist","settings","to","disk","if","persist","=","True"]
code: def set(
      self, section, key, value, globally=False, persist=False
  ) -> None:
      """Persist settings to disk if persist = True"""
  
      def write_setting(settings, settings_path, persist):
          if not settings.has_section(section):
              Settings._safe_add_section(
                  settings, Settings.DEFAULT_SECTION
              )
          settings.set(section, key, str(value))
  
          if persist:
              self._persist_settings(settings, settings_path)
  
      if globally:
          global_path = Settings._global_path()
          if global_path is not None:
              write_setting(self._global_settings, global_path, persist)
      else:
          write_setting(
              self._local_settings,
              Settings._local_path(self.root_dir),
              persist,
          )
  
file_path: wandb/wandb/old/settings.py
imports: import configparser
  import getpass
  import os
  import tempfile
  from typing import Any, Optional
  from wandb import env
  from wandb.old import core
  from wandb.sdk.lib import filesystem
  from wandb.sdk.lib.runid import generate_id
label_desc: Use image node_id 4 for calling the Settings obj's underlying member method code with example usage: obj.set(section, key, value, globally, persist) without return types