class_docstr: Record of the Scheduler creation event. This can be used for telemetry in settings
  where many Schedulers are being created either manually or programatically. In
  order to facilitate easy serialization only include simple types: numbers, strings,
  bools, and None.
code: def from_scheduler(
      cls, scheduler: Scheduler
  ) -> SchedulerCreatedRecord:
      return cls(
          experiment_created_record=ExperimentCreatedRecord.from_experiment(
              experiment=scheduler.experiment
          ),
          generation_strategy_created_record=(
              GenerationStrategyCreatedRecord.from_generation_strategy(
                  generation_strategy=scheduler.standard_generation_strategy
              )
          ),
          scheduler_total_trials=scheduler.options.total_trials,
          scheduler_max_pending_trials=scheduler.options.max_pending_trials,
          # If batch_size is None then we are using single-Arm trials
          arms_per_trial=scheduler.options.batch_size or 1,
          early_stopping_strategy_cls=(
              None
              if scheduler.options.early_stopping_strategy is None
              else scheduler.options.early_stopping_strategy.__class__.__name__
          ),
          global_stopping_strategy_cls=(
              None
              if scheduler.options.global_stopping_strategy is None
              else scheduler.options.global_stopping_strategy.__class__.__name__
          ),
          transformed_dimensionality=_get_max_transformed_dimensionality(
              search_space=scheduler.experiment.search_space,
              generation_strategy=scheduler.standard_generation_strategy,
          ),
      )
  
file_path: Ax/ax/telemetry/scheduler.py
imports: from __future__ import annotations
  from dataclasses import asdict, dataclass
  from typing import Any, Dict, Optional
  from warnings import warn
  import numpy
  from ax.service.scheduler import get_fitted_model_bridge, Scheduler
  from ax.telemetry.common import _get_max_transformed_dimensionality
  from ax.telemetry.experiment import ExperimentCompletedRecord, ExperimentCreatedRecord
  from ax.telemetry.generation_strategy import GenerationStrategyCreatedRecord
label_desc: Use image node_id 1 for calling the SchedulerCreatedRecord obj's underlying member method code with example usage: obj.from_scheduler(cls, scheduler) and returns: cls