code: def test_weakref_with_pickle(tmp_path):
      ex = LocalExecutor(tmp_path)
      assert job_with_weakref(ex).result() == "world"
  
file_path: submitit/submitit/test_pickle.py
imports: import pickle
  from weakref import ref
  import pytest
  from .local.debug import DebugExecutor
  from .local.local import LocalExecutor
label_desc: Use image node_id 3 for calling a global function with example usage: test_weakref_with_pickle(tmp_path) without return types