code: def test_local_from_script_and_function():
      domain = Domain(
          {"x": {0, 1, 2, 3}, "y": [-1.0, 1.0], "z": {"123", "abc"}},
          seed=7,
      )
      jobs = [
          Job(
              task="hypertunity/scheduling/tests/script.py::main",
              args=(*domain.sample().as_namedtuple(),),
          )
          for _ in range(10)
      ]
      results = run_jobs(jobs)
      assert all(
          [
              r.data == script.main(*j.args)
              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 4 for calling a global function with example usage: test_local_from_script_and_function() without return types