code: def test_ax_client_created_record_from_ax_client(self) -> None:
      ax_client = AxClient()
      ax_client.create_experiment(
          name="test_experiment",
          parameters=[
              {"name": "x", "type": "range", "bounds": [-5.0, 10.0]},
              {"name": "y", "type": "range", "bounds": [0.0, 15.0]},
          ],
          objectives={"branin": ObjectiveProperties(minimize=True)},
          is_test=True,
      )
  
      record = AxClientCreatedRecord.from_ax_client(ax_client=ax_client)
  
      expected = AxClientCreatedRecord(
          experiment_created_record=ExperimentCreatedRecord.from_experiment(
              experiment=ax_client.experiment
          ),
          generation_strategy_created_record=(
              GenerationStrategyCreatedRecord.from_generation_strategy(
                  generation_strategy=ax_client.generation_strategy
              )
          ),
          arms_per_trial=1,
          early_stopping_strategy_cls=None,
          global_stopping_strategy_cls=None,
          transformed_dimensionality=2,
      )
      self.assertEqual(record, expected)
  
      # Test with HSS & MOO.
      ax_client = AxClient()
      parameters: List[
          Dict[
              str,
              Union[
                  TParamValue,
                  Sequence[TParamValue],
                  Dict[str, List[str]],
              ],
          ]
      ] = [
          {
              "name": "SearchSpace.optimizer",
              "type": "choice",
              "values": ["Adam", "SGD", "Adagrad"],
              "dependents": None,
              "is_ordered": False,
          },
          {
              "name": "SearchSpace.lr",
              "type": "range",
              "bounds": [0.001, 0.1],
          },
          {"name": "SearchSpace.fixed", "type": "fixed", "value": 12.0},
          {
              "name": "SearchSpace",
              "type": "fixed",
              "value": "SearchSpace",
              "dependents": {
                  "SearchSpace": [
                      "SearchSpace.optimizer",
                      "SearchSpace.lr",
                      "SearchSpace.fixed",
                  ]
              },
          },
      ]
      ax_client.create_experiment(
          name="hss_experiment",
          parameters=parameters,
          objectives={
              "branin": ObjectiveProperties(minimize=True),
              "b2": ObjectiveProperties(minimize=False),
          },
          is_test=True,
      )
      record = AxClientCreatedRecord.from_ax_client(ax_client=ax_client)
  
      expected = AxClientCreatedRecord(
          experiment_created_record=ExperimentCreatedRecord.from_experiment(
              experiment=ax_client.experiment
          ),
          generation_strategy_created_record=(
              GenerationStrategyCreatedRecord.from_generation_strategy(
                  generation_strategy=ax_client.generation_strategy
              )
          ),
          arms_per_trial=1,
          early_stopping_strategy_cls=None,
          global_stopping_strategy_cls=None,
          transformed_dimensionality=4,
      )
      self.assertEqual(record, expected)
      self.assertEqual(
          record.experiment_created_record.hierarchical_tree_height, 2
      )
  
file_path: Ax/ax/telemetry/tests/test_ax_client.py
imports: from typing import Dict, List, Sequence, Union
  from ax.core.types import TParamValue
  from ax.service.ax_client import AxClient, ObjectiveProperties
  from ax.telemetry.ax_client import AxClientCompletedRecord, AxClientCreatedRecord
  from ax.telemetry.experiment import ExperimentCompletedRecord, ExperimentCreatedRecord
  from ax.telemetry.generation_strategy import GenerationStrategyCreatedRecord
  from ax.utils.common.testutils import TestCase
label_desc: Use image node_id 1 for calling the TestAxClient obj's underlying member method code with example usage: obj.test_ax_client_created_record_from_ax_client() without return types