code: def test_StatusQuoOverlap(self) -> None:
      new_sq = Arm(
          parameters={"w": 0.95, "x": 1, "y": "foo", "z": True}
      )
      # Set status quo to existing arm
      self.batch.set_status_quo_with_weight(
          self.arms[0], self.sq_weight
      )
      # Status quo weight is set to the average of other arms' weights.
      # In this case, there are only two arms: 0_0 (SQ) and 0_1 (not SQ).
      # So their weights are equal, as weight(0_0) = avg(weight(0_1)).
      self.assertEqual(self.batch.weights[0], self.batch.weights[1])
      self.assertTrue(
          self.batch.status_quo.parameters == self.arms[0].parameters
      )
      self.assertEqual(
          self.batch.status_quo.name, self.batch.arms[0].name
      )
      self.assertEqual(
          self.batch.arm_weights[self.batch.arms[0]], self.sq_weight
      )
      self.assertEqual(
          sum(self.batch.weights), self.weights[1] + self.sq_weight
      )
  
      # Set status quo to new arm, add it
      self.batch.set_status_quo_with_weight(new_sq, self.sq_weight)
      self.assertEqual(self.batch.status_quo.name, "status_quo_0")
      self.batch.add_arms_and_weights([new_sq])
      self.assertEqual(
          self.batch.generator_run_structs[1]
          .generator_run.arms[0]
          .name,
          "status_quo_0",
      )
  
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 9 for calling the BatchTrialTest obj's underlying member method code with example usage: obj.test_StatusQuoOverlap() without return types