code: def test_search_space_exhausted_exception(
      tmpdir: Path, cmd_args: List[str]
  ) -> None:
      cmd = [
          "tests/apps/polynomial.py",
          "-m",
          "hydra.run.dir=" + str(tmpdir),
          "hydra.job.chdir=True",
          "hydra.sweeper.ax_config.max_trials=2",
      ] + cmd_args
      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 11 for calling a global function with example usage: test_search_space_exhausted_exception(tmpdir, cmd_args) without return types