code: def test_unpickling_watcher_registration(tmp_path: Path) -> None:
      executor = FakeExecutor(folder=tmp_path)
      job = executor.submit(_three_time, 4)
      original_job_id = job._job_id
      job._job_id = (
          "007"  # pylint: disable=attribute-defined-outside-init
      )
      assert job.watcher._registered == {
          original_job_id
      }  # still holds the old job id
      pkl = pickle.dumps(job)
      newjob = pickle.loads(pkl)
      assert newjob.job_id == "007"
      assert newjob.watcher._registered == {original_job_id, "007"}
  
imports: import contextlib
  import pickle
  import subprocess
  import sys
  import time
  import typing
  from pathlib import Path
  from unittest.mock import patch
  import pytest
  from .None import core, submission, utils
label_desc: Use image node_id 7 for calling a global function with example usage: test_unpickling_watcher_registration(tmp_path) without return types