code: def test_search_space_with_constraint_metric(
      tmpdir: Path, cmd_args: List[str]
  ) -> None:
      # test that outcome_constraints experiment parameter `outcome_constraints`
      # works correctly, and that the ax_sweeper supports outputting a dictionary
      # from the evaluation function so that multiple metrics can be supported.
      cmd = [
          "tests/apps/polynomial_with_constraint.py",
          "-m",
          "hydra.run.dir=" + str(tmpdir),
          "hydra.job.chdir=True",
          "hydra.sweeper.ax_config.max_trials=2",
      ] + cmd_args
      results, _ = run_python_script(cmd)
  
imports: import math
  import os
  from pathlib import Path
  from typing import Any, List
  from hydra.core.plugins import Plugins
  from hydra.plugins.sweeper import Sweeper
  from hydra.test_utils.test_utils import TSweepRunner, chdir_plugin_root, run_python_script
  from omegaconf import DictConfig, OmegaConf
  from pytest import mark, raises
  from hydra_plugins.hydra_ax_sweeper.ax_sweeper import AxSweeper
label_desc: Use image node_id 12 for calling a global function with example usage: test_search_space_with_constraint_metric(tmpdir, cmd_args) without return types