class_docstr: Helper class providing methods for saving changes made to an experiment
  if `db_settings` property is set to a non-None value on the instance.
class_docstr_tok: ["Helper","class","providing","methods","for","saving","changes","made","to","an","experiment","if","`","db_settings","`","property","is","set","to","a","non-None","value","on","the","instance","."]
docstr: DB settings set on this instance; guaranteed to be non-None.
docstr_tok: ["DB","settings","set","on","this","instance",";","guaranteed","to","be","non-None","."]
code: def db_settings(self) -> DBSettings:
      """DB settings set on this instance; guaranteed to be non-None."""
      if self._db_settings is None:
          raise ValueError("No DB settings are set on this instance.")
      return not_none(self._db_settings)
  
imports: import re
  import time
  from logging import INFO, Logger
  from typing import Any, Dict, List, Optional, Tuple, Type
  from ax.core.base_trial import BaseTrial
  from ax.core.experiment import Experiment
  from ax.core.generation_strategy_interface import GenerationStrategyInterface
  from ax.core.generator_run import GeneratorRun
  from ax.exceptions.core import IncompatibleDependencyVersion, ObjectNotFoundError, UnsupportedError
  from ax.modelbridge.generation_strategy import GenerationStrategy
  from ax.utils.common.executils import retry_on_exception
  from ax.utils.common.logger import _round_floats_for_logging, get_logger
  from ax.utils.common.typeutils import not_none
label_desc: Use image node_id 4 for calling the WithDBSettingsBase obj's underlying member method code with example usage: obj.db_settings() and returns: not_none