code: def test_config_search_path(
      args: List[str], expected: str, tmpdir: Path, error: Optional[str]
  ) -> None:
      cmd = [
          "examples/advanced/config_search_path/my_app.py",
          "hydra.run.dir=" + str(tmpdir),
          "hydra.job.chdir=True",
      ]
      cmd.extend(args)
      if error is not None:
          ret = run_with_error(cmd)
          assert re.search(re.escape(error), ret) is not None
      else:
          result, _err = run_python_script(cmd)
          assert OmegaConf.create(result) == expected
  
imports: import re
  from pathlib import Path
  from typing import List, Optional
  from omegaconf import OmegaConf
  from pytest import mark
  from hydra.test_utils.test_utils import chdir_hydra_root, run_python_script, run_with_error
label_desc: Use image node_id 1 for calling a global function with example usage: test_config_search_path(args, expected, tmpdir, error) without return types