code: def test_function_sequence_checkpoint(tmp_path: Path) -> None:
      file = tmp_path / "test_funcseq.pkl"
      fs0 = helpers.FunctionSequence(verbose=True)
      fs0.add(_three_time, 4)
      fs0.add(_three_time, 5)
      assert len(fs0) == 2
      assert sum(x.done() for x in fs0) == 0
      utils.cloudpickle_dump(fs0, file)
      fs1 = utils.pickle_load(file)
      assert sum(x.done() for x in fs1) == 0
      assert fs1() == [12, 15]
      assert sum(x.done() for x in fs1) == 2
  
imports: import os
  import time
  import typing
  from pathlib import Path
  import pytest
  from .None import helpers
  from .core import core, utils
label_desc: Use image node_id 2 for calling a global function with example usage: test_function_sequence_checkpoint(tmp_path) without return types