code: def _save_generation_strategy_to_db_if_possible(
      generation_strategy: GenerationStrategy,
      encoder: Encoder,
      decoder: Decoder,
      suppress_all_errors: bool,
  ) -> None:
      start_time = time.time()
      _save_generation_strategy(
          generation_strategy=generation_strategy,
          encoder=encoder,
          decoder=decoder,
      )
      logger.debug(
          f"Saved generation strategy {generation_strategy.name} in "
          f"{_round_floats_for_logging(time.time() - start_time)} seconds."
      )
  
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 3 for calling a global function with example usage: _save_generation_strategy_to_db_if_possible(generation_strategy, encoder, decoder, suppress_all_errors) without return types