code: def test_local_from_script_and_cmdline_named_args():
      domain = Domain(
          {
              "--x": {0, 1, 2, 3},
              "--y": [-1.0, 1.0],
              "--z": {"acb123", "abc"},
          },
          seed=7,
      )
      jobs = [
          Job(
              task="hypertunity/scheduling/tests/script.py",
              args=domain.sample().as_dict(),
              meta={"binary": "python"},
          )
          for _ in range(10)
      ]
      results = run_jobs(jobs)
      assert all(
          [
              r.data
              == script.main(
                  **{k.lstrip("-"): v for k, v in j.args.items()}
              )
              for r, j in zip(results, jobs)
          ]
      )
  
file_path: hypertunity/hypertunity/scheduling/tests/test_scheduler.py
imports: import os
  import tempfile
  import pytest
  from hypertunity.domain import Domain, Sample
  from hypertunity.optimisation import base
  from ..jobs import Job, SlurmJob
  from ..scheduler import Scheduler
  from .None import script
label_desc: Use image node_id 6 for calling a global function with example usage: test_local_from_script_and_cmdline_named_args() without return types