code: def test_GenMetadata(self) -> None:
      gm = {"hello": "world"}
      generator_run = GeneratorRun(
          arms=self.arms,
          # pyre-fixme[6]: For 2nd param expected `Optional[List[float]]` but got
          #  `List[int]`.
          weights=self.weights,
          optimization_config=get_optimization_config(),
          search_space=get_search_space(),
          gen_metadata=gm,
      )
      self.assertEqual(generator_run.gen_metadata, gm)
  
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 10 for calling the GeneratorRunTest obj's underlying member method code with example usage: obj.test_GenMetadata() without return types