code: def test_StatusQuoOptimizeForPower(self) -> None:
      self.experiment.status_quo = self.status_quo
      batch = self.experiment.new_batch_trial(optimize_for_power=True)
      self.assertEqual(batch._status_quo_weight_override, 1)
  
      self.experiment.status_quo = None
      with self.assertRaises(ValueError):
          batch = self.experiment.new_batch_trial(
              optimize_for_power=True
          )
  
      batch.add_arms_and_weights(arms=[])
      self.assertTrue(batch._status_quo_weight_override, 1)
  
      batch.add_arms_and_weights(arms=self.arms, weights=self.weights)
      expected_status_quo_weight = math.sqrt(sum(self.weights))
      self.assertTrue(
          math.isclose(
              batch._status_quo_weight_override,
              expected_status_quo_weight,
          )
      )
      self.assertTrue(
          math.isclose(
              batch.arm_weights[batch.status_quo],
              expected_status_quo_weight,
          )
      )
  
imports: import math
  from time import sleep
  from unittest import mock
  from unittest.mock import patch, PropertyMock
  import numpy
  from ax.core.arm import Arm
  from ax.core.base_trial import TrialStatus
  from ax.core.batch_trial import BatchTrial, GeneratorRunStruct
  from ax.core.experiment import Experiment
  from ax.core.generator_run import GeneratorRun, GeneratorRunType
  from ax.core.parameter import FixedParameter, ParameterType
  from ax.core.search_space import SearchSpace
  from ax.runners.synthetic import SyntheticRunner
  from ax.utils.common.testutils import TestCase
  from ax.utils.common.typeutils import checked_cast
  from ax.utils.testing.core_stubs import get_abandoned_arm, get_arm, get_arm_weights1, get_arms, get_experiment, get_generator_run, get_generator_run2, get_weights
label_desc: Use image node_id 11 for calling the BatchTrialTest obj's underlying member method code with example usage: obj.test_StatusQuoOptimizeForPower() without return types