code: def setUp(self) -> None:
      self.metrics = {
          "m1": Metric(name="m1"),
          "m2": Metric(name="m2"),
          "m3": Metric(name="m3"),
          "m4": Metric(name="m4"),
      }
      self.objective = Objective(
          metric=self.metrics["m1"], minimize=False
      )
      self.alt_objective = Objective(
          metric=self.metrics["m3"], minimize=False
      )
      self.multi_objective = MultiObjective(
          objectives=[self.objective, self.alt_objective],
      )
      self.m2_objective = ScalarizedObjective(
          metrics=[self.metrics["m1"], self.metrics["m2"]]
      )
      self.outcome_constraint = OutcomeConstraint(
          metric=self.metrics["m3"], op=ComparisonOp.GEQ, bound=-0.25
      )
      self.additional_outcome_constraint = OutcomeConstraint(
          metric=self.metrics["m4"], op=ComparisonOp.LEQ, bound=0.25
      )
      self.scalarized_outcome_constraint = ScalarizedOutcomeConstraint(
          metrics=[self.metrics["m3"], self.metrics["m4"]],
          weights=[0.5, 0.5],
          op=ComparisonOp.GEQ,
          bound=-0.25,
      )
      self.outcome_constraints = [
          self.outcome_constraint,
          self.additional_outcome_constraint,
          self.scalarized_outcome_constraint,
      ]
      self.single_output_risk_measure = RiskMeasure(
          risk_measure="Expectation",
          options={"n_w": 2},
      )
      self.multi_output_risk_measure = RiskMeasure(
          risk_measure="MultiOutputExpectation",
          options={"n_w": 2},
      )
  
imports: from ax.core.metric import Metric
  from ax.core.objective import MultiObjective, Objective, ScalarizedObjective
  from ax.core.optimization_config import _NO_RISK_MEASURE, MultiObjectiveOptimizationConfig, OptimizationConfig
  from ax.core.outcome_constraint import ObjectiveThreshold, OutcomeConstraint, ScalarizedOutcomeConstraint
  from ax.core.risk_measures import RiskMeasure
  from ax.core.types import ComparisonOp
  from ax.exceptions.core import UserInputError
  from ax.utils.common.testutils import TestCase
label_desc: Use image node_id 1 for calling the OptimizationConfigTest obj's underlying member method code with example usage: obj.setUp() without return types