code: def test_MultiObjectiveBackwardsCompatibility(self) -> None:
      multi_objective = MultiObjective(
          metrics=[
              self.metrics["m1"],
              self.metrics["m2"],
              self.metrics["m3"],
          ]
      )
      minimizes = [obj.minimize for obj in multi_objective.objectives]
      self.assertEqual(
          multi_objective.metrics, list(self.metrics.values())
      )
      self.assertEqual(minimizes, [False, True, False])
  
      multi_objective_min = MultiObjective(
          metrics=[
              self.metrics["m1"],
              self.metrics["m2"],
              self.metrics["m3"],
          ],
          minimize=True,
      )
      minimizes = [
          obj.minimize for obj in multi_objective_min.objectives
      ]
      self.assertEqual(minimizes, [True, False, 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 4 for calling the ObjectiveTest obj's underlying member method code with example usage: obj.test_MultiObjectiveBackwardsCompatibility() without return types