class_docstr: Testing the instantiation utilities functionality that is not tested in
  main `AxClient` testing suite (`TestServiceAPI`).
class_docstr_tok: ["Testing","the","instantiation","utilities","functionality","that","is","not","tested","in","main","`","AxClient","`","testing","suite","(","`","TestServiceAPI","`",")","."]
code: def test_objective_validation(self) -> None:
      with self.assertRaisesRegex(
          UnsupportedError, "Ambiguous objective definition"
      ):
          InstantiationBase.make_experiment(
              # pyre-fixme[6]: For 1st param expected `List[Dict[str, Union[None,
              #  Dict[str, List[str]], List[Union[None, bool, float, int, str]],
              #  bool, float, int, str]]]` but got `Dict[str, Union[List[int],
              #  str]]`.
              parameters={
                  "name": "x",
                  "type": "range",
                  "bounds": [0, 1],
              },
              objective_name="branin",
              objectives={"branin": "minimize", "currin": "maximize"},
          )
  
file_path: Ax/ax/service/tests/test_instantiation_utils.py
imports: from typing import Any, Dict
  from ax.core.metric import Metric
  from ax.core.optimization_config import MultiObjectiveOptimizationConfig
  from ax.core.parameter import FixedParameter, ParameterType, RangeParameter
  from ax.core.search_space import HierarchicalSearchSpace
  from ax.exceptions.core import UnsupportedError
  from ax.service.utils.instantiation import InstantiationBase
  from ax.utils.common.testutils import TestCase
  from ax.utils.common.typeutils import checked_cast
label_desc: Use image node_id 3 for calling the TestInstantiationtUtils obj's underlying member method code with example usage: obj.test_objective_validation() without return types