code: def test_delayed(tmp_path: Path) -> None:
      delayed = utils.DelayedSubmission(_three_time, 4)
      assert not delayed.done()
      assert delayed.result() == 12
      assert delayed.done()
      delayed_pkl = tmp_path / "test_delayed.pkl"
      delayed.dump(delayed_pkl)
      delayed2 = utils.DelayedSubmission.load(delayed_pkl)
      assert delayed2.done()
  
file_path: submitit/submitit/core/test_utils.py
imports: import os
  import shutil
  import sys
  from pathlib import Path
  from typing import Optional
  import pytest
  from .None import utils
label_desc: Use image node_id 4 for calling a global function with example usage: test_delayed(tmp_path) without return types