code: def setUp(self) -> None:
      self.metrics = {
          "m1": Metric(name="m1"),
          "m2": Metric(name="m2", lower_is_better=True),
          "m3": Metric(name="m3", lower_is_better=False),
      }
      self.objectives = {
          "o1": Objective(metric=self.metrics["m1"]),
          "o2": Objective(metric=self.metrics["m2"], minimize=True),
          "o3": Objective(metric=self.metrics["m3"], minimize=False),
      }
      self.objective = Objective(
          metric=self.metrics["m1"], minimize=False
      )
      self.multi_objective = MultiObjective(
          objectives=[
              self.objectives["o1"],
              self.objectives["o2"],
              self.objectives["o3"],
          ]
      )
      self.scalarized_objective = ScalarizedObjective(
          metrics=[self.metrics["m1"], self.metrics["m2"]],
          minimize=True,
      )
  
file_path: Ax/ax/core/tests/test_objective.py
imports: import warnings
  from ax.core.metric import Metric
  from ax.core.objective import MultiObjective, Objective, ScalarizedObjective
  from ax.utils.common.testutils import TestCase
label_desc: Use image node_id 1 for calling the ObjectiveTest obj's underlying member method code with example usage: obj.setUp() without return types