code: def setUp(self) -> None:
      self.model_predictions = get_model_predictions()
      self.optimization_config = get_optimization_config()
      self.search_space = get_search_space()
  
      self.arms = get_arms()
      self.weights = [2, 1, 1]
      self.unweighted_run = GeneratorRun(
          arms=self.arms,
          optimization_config=self.optimization_config,
          search_space=self.search_space,
          model_predictions=self.model_predictions,
          fit_time=4.0,
          gen_time=10.0,
      )
      self.weighted_run = GeneratorRun(
          arms=self.arms,
          # pyre-fixme[6]: For 2nd param expected `Optional[List[float]]` but got
          #  `List[int]`.
          weights=self.weights,
          optimization_config=self.optimization_config,
          search_space=self.search_space,
          model_predictions=self.model_predictions,
      )
  
file_path: Ax/ax/core/tests/test_generator_run.py
imports: from ax.core.arm import Arm
  from ax.core.generator_run import GeneratorRun
  from ax.exceptions.core import UnsupportedError
  from ax.utils.common.testutils import TestCase
  from ax.utils.testing.core_stubs import get_arms, get_model_predictions, get_model_predictions_per_arm, get_optimization_config, get_search_space
label_desc: Use image node_id 1 for calling the GeneratorRunTest obj's underlying member method code with example usage: obj.setUp() without return types