code: def get_generator_runs_by_id(
      generator_run_ids: List[int],
      decoder: Decoder,
      reduced_state: bool = False,
      immutable_search_space_and_opt_config: bool = False,
  ) -> List[GeneratorRun]:
      """Bulk fetches generator runs by id."""
      generator_run_sqa_class = decoder.config.class_to_sqa_class[
          GeneratorRun
      ]
      with session_scope() as session:
          query = session.query(generator_run_sqa_class).filter(
              generator_run_sqa_class.id.in_(
                  generator_run_ids
              )  # pyre-ignore[16]
          )
          sqa_grs = query.all()
      return [
          decoder.generator_run_from_sqa(
              generator_run_sqa=checked_cast(SQAGeneratorRun, sqa_gr),
              reduced_state=reduced_state,
              immutable_search_space_and_opt_config=immutable_search_space_and_opt_config,
          )
          for sqa_gr in sqa_grs
      ]
  
imports: from math import ceil
  from typing import Any, cast, Dict, List, Optional, Type
  from ax.core.experiment import Experiment
  from ax.core.generator_run import GeneratorRun
  from ax.core.metric import Metric
  from ax.core.trial import Trial
  from ax.exceptions.core import ExperimentNotFoundError, ObjectNotFoundError
  from ax.modelbridge.generation_strategy import GenerationStrategy
  from ax.storage.sqa_store.db import session_scope
  from ax.storage.sqa_store.decoder import Decoder
  from ax.storage.sqa_store.reduced_state import get_query_options_to_defer_immutable_duplicates, get_query_options_to_defer_large_model_cols
  from ax.storage.sqa_store.sqa_classes import SQAExperiment, SQAGenerationStrategy, SQAGeneratorRun, SQATrial
  from ax.storage.sqa_store.sqa_config import SQAConfig
  from ax.utils.common.constants import Keys
  from ax.utils.common.typeutils import checked_cast, not_none
  from sqlalchemy.orm import defaultload, lazyload, noload
  from sqlalchemy.orm.exc import DetachedInstanceError
label_desc: Use image node_id 16 for calling a global function with example usage: get_generator_runs_by_id(generator_run_ids, decoder, reduced_state, immutable_search_space_and_opt_config) and returns: unknown