code: def test_local_from_fn():
      domain = Domain({"x": [0.0, 1.0]}, seed=7)
      jobs = [
          Job(task=square, args=(domain.sample(),)) for _ in range(10)
      ]
      results = run_jobs(jobs)
      assert all(
          [
              r.data.value == square(*j.args).value
              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 7 for calling a global function with example usage: test_local_from_fn() without return types