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","."]
code: def __init__(
      self,
      db_settings: Optional[DBSettings] = None,
      logging_level: int = INFO,
      suppress_all_errors: bool = False,
  ) -> None:
      if db_settings and (
          not DBSettings or not isinstance(db_settings, DBSettings)
      ):
          raise ValueError(
              "`db_settings` argument should be of type ax.storage.sqa_store."
              f"(Got: {db_settings} of type {type(db_settings)}. "
              "structs.DBSettings. To use `DBSettings`, you will need SQLAlchemy "
              "installed in your environment (can be installed through pip)."
          )
      self._db_settings = db_settings or self._get_default_db_settings()
      self._suppress_all_errors = suppress_all_errors
      if self.db_settings_set:
          init_engine_and_session_factory(
              creator=self.db_settings.creator, url=self.db_settings.url
          )
      logger.setLevel(logging_level)
  
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 1 to create a new WithDBSettingsBase object  with example: obj = WithDBSettingsBase(db_settings, logging_level, suppress_all_errors)