code: def test_fake_job_cancel_at_deletion(tmp_path: Path) -> None:
      job: FakeJob[tp.Any] = FakeJob(job_id="12", folder=tmp_path).cancel_at_deletion()  # type: ignore
      with patch("subprocess.call", return_value=None) as mock:
          assert mock.call_count == 0
          del job
          assert mock.call_count == 1
  
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 4 for calling a global function with example usage: test_fake_job_cancel_at_deletion(tmp_path) without return types