code: def test_optimization_created_record_from_scheduler(self) -> None:
      scheduler = Scheduler(
          experiment=get_branin_experiment(),
          generation_strategy=get_generation_strategy(),
          options=SchedulerOptions(
              total_trials=0,
              tolerated_trial_failure_rate=0.2,
              init_seconds_between_polls=10,
          ),
      )
  
      record = OptimizationCreatedRecord.from_scheduler(
          scheduler=scheduler,
          unique_identifier="foo",
          product_surface="Axolotl",
          launch_surface="web",
          deployed_job_id=1118,
          trial_evaluation_identifier="train",
          is_manual_generation_strategy=True,
          warm_started_from=None,
          num_custom_trials=0,
          support_tier="good!",
      )
  
      expected_dict = {
          **SchedulerCreatedRecord.from_scheduler(
              scheduler=scheduler
          ).flatten(),
          "unique_identifier": "foo",
          "product_surface": "Axolotl",
          "launch_surface": "web",
          "deployed_job_id": 1118,
          "trial_evaluation_identifier": "train",
          "is_manual_generation_strategy": True,
          "warm_started_from": None,
          "num_custom_trials": 0,
          "support_tier": "good!",
      }
  
      self.assertEqual(asdict(record), expected_dict)
  
imports: from dataclasses import asdict
  from datetime import datetime
  from ax.service.ax_client import AxClient, ObjectiveProperties
  from ax.service.scheduler import Scheduler, SchedulerOptions
  from ax.telemetry.ax_client import AxClientCompletedRecord, AxClientCreatedRecord
  from ax.telemetry.experiment import ExperimentCreatedRecord
  from ax.telemetry.generation_strategy import GenerationStrategyCreatedRecord
  from ax.telemetry.optimization import OptimizationCompletedRecord, OptimizationCreatedRecord
  from ax.telemetry.scheduler import SchedulerCompletedRecord, SchedulerCreatedRecord
  from ax.utils.common.testutils import TestCase
  from ax.utils.testing.core_stubs import get_branin_experiment
  from ax.utils.testing.modeling_stubs import get_generation_strategy
label_desc: Use image node_id 1 for calling the TestOptimization obj's underlying member method code with example usage: obj.test_optimization_created_record_from_scheduler() without return types