code: def test_jobs_using_choice_between_dicts(
      tmpdir: Path,
      cmd_arg: str,
      serialized_encoding: str,
      best_coefficients: str,
      best_value: float,
  ) -> None:
      cmd = [
          "tests/apps/polynomial_with_dict_coefficients.py",
          "-m",
          "hydra.run.dir=" + str(tmpdir),
          "hydra.job.chdir=True",
          "hydra.sweeper.ax_config.max_trials=3",
      ] + [cmd_arg]
      result, _ = run_python_script(cmd)
      assert f"polynomial.coefficients: {serialized_encoding}" in result
      assert (
          f"'+polynomial.coefficients': {best_coefficients}" in result
      )
      assert f"New best value: {best_value}" in result
  
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 14 for calling a global function with example usage: test_jobs_using_choice_between_dicts(tmpdir, cmd_arg, serialized_encoding, best_coefficients, best_value) without return types