code: def test_basic_sweep_example(
      tmpdir: Path,
      args: List[str],
      expected: str,
  ) -> None:
      app_path = "examples/tutorials/basic/running_your_hydra_app/5_basic_sweep/my_app.py"
  
      cmd = [
          app_path,
          "--multirun",
          "hydra.run.dir=" + str(tmpdir),
          "hydra.job.chdir=True",
          "hydra.hydra_logging.formatters.simple.format='[HYDRA] %(message)s'",
          "hydra.job_logging.formatters.simple.format='[JOB] %(message)s'",
      ]
      cmd.extend(args)
      result, _err = run_python_script(cmd)
  
      assert_regex_match(
          from_line=expected,
          to_line=result,
          from_name="Expected output",
          to_name="Actual output",
      )
  
imports: from pathlib import Path
  from textwrap import dedent
  from typing import List
  from pytest import mark
  from hydra.test_utils.test_utils import assert_regex_match, chdir_hydra_root, run_python_script
label_desc: Use image node_id 1 for calling a global function with example usage: test_basic_sweep_example(tmpdir, args, expected) without return types