code: def test_jobs_configured_via_cmd(
      hydra_sweep_runner: TSweepRunner,
      test_conf: str,
      override: str,
      expected_x: float,
  ) -> None:
      sweep = hydra_sweep_runner(
          calling_file="tests/test_ax_sweeper_plugin.py",
          calling_module=None,
          task_function=quadratic,
          config_path="config",
          config_name="config.yaml",
          overrides=[
              "hydra/launcher=basic",
              f"quadratic.x={override}",
              "quadratic.y=int(interval(-2, 2))",
              f"params={test_conf}",
          ],
      )
      with sweep:
          assert sweep.returns is None
          returns = OmegaConf.load(
              f"{sweep.temp_dir}/optimization_results.yaml"
          )
          assert isinstance(returns, DictConfig)
          assert returns["optimizer"] == "ax"
          assert len(returns) == 2
          best_parameters = returns.ax
          assert math.isclose(
              best_parameters["quadratic.x"], expected_x, abs_tol=1e-4
          )
          assert math.isclose(
              best_parameters["quadratic.y"], -2.0, abs_tol=1e-4
          )
  
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 7 for calling a global function with example usage: test_jobs_configured_via_cmd(hydra_sweep_runner, test_conf, override, expected_x) without return types