code: def update_generation_strategy(
      generation_strategy: GenerationStrategy,
      generator_runs: List[GeneratorRun],
      config: Optional[SQAConfig] = None,
      batch_size: Optional[int] = None,
      reduce_state_generator_runs: bool = False,
  ) -> None:
      """Update generation strategy's current step and attach generator runs
      (using default SQAConfig)."""
      config = config or SQAConfig()
      encoder = Encoder(config=config)
      decoder = Decoder(config=config)
      _update_generation_strategy(
          generation_strategy=generation_strategy,
          generator_runs=generator_runs,
          encoder=encoder,
          decoder=decoder,
          batch_size=batch_size,
          reduce_state_generator_runs=reduce_state_generator_runs,
      )
  
imports: import os
  from logging import Logger
  from typing import Any, Callable, Dict, List, Optional, Sequence, Union
  from ax.core.base_trial import BaseTrial
  from ax.core.experiment import Experiment
  from ax.core.generator_run import GeneratorRun
  from ax.core.metric import Metric
  from ax.core.outcome_constraint import ObjectiveThreshold, OutcomeConstraint
  from ax.core.runner import Runner
  from ax.exceptions.core import UserInputError
  from ax.exceptions.storage import SQADecodeError
  from ax.modelbridge.generation_strategy import GenerationStrategy
  from ax.storage.sqa_store.db import session_scope, SQABase
  from ax.storage.sqa_store.decoder import Decoder
  from ax.storage.sqa_store.encoder import Encoder
  from ax.storage.sqa_store.sqa_classes import SQAData, SQAGeneratorRun, SQAMetric, SQARunner, SQATrial
  from ax.storage.sqa_store.sqa_config import SQAConfig
  from ax.storage.sqa_store.utils import copy_db_ids
  from ax.utils.common.base import Base
  from ax.utils.common.logger import get_logger
  from ax.utils.common.typeutils import checked_cast, not_none
label_desc: Use image node_id 9 for calling a global function with example usage: update_generation_strategy(generation_strategy, generator_runs, config, batch_size, reduce_state_generator_runs) without return types