code: def _attach_completed_trials(ax_client: AxClient) -> None:
      # Attach completed trials
      trial1: TParameterization = {"x1": 0.1, "x2": 0.1}
      parameters, trial_index = ax_client.attach_trial(trial1)
      ax_client.complete_trial(
          trial_index=trial_index,
          raw_data=_evaluate_test_metrics(parameters),
      )
  
      trial2: TParameterization = {"x1": 0.2, "x2": 0.1}
      parameters, trial_index = ax_client.attach_trial(trial2)
      ax_client.complete_trial(
          trial_index=trial_index,
          raw_data=_evaluate_test_metrics(parameters),
      )
  
file_path: Ax/ax/modelbridge/tests/test_prediction_utils.py
imports: from unittest import mock
  import numpy
  from ax.core.observation import ObservationFeatures
  from ax.core.types import TEvaluationOutcome, TParameterization
  from ax.modelbridge.prediction_utils import predict_at_point, predict_by_features
  from ax.service.ax_client import AxClient
  from ax.utils.common.testutils import TestCase
  from ax.utils.common.typeutils import not_none
label_desc: Use image node_id 2 for calling a global function with example usage: _attach_completed_trials(ax_client) without return types