code: def test_requeuing_not_checkpointable(
      tmp_path: Path, fast_forward_clock
  ) -> None:
      usr_sig = submitit.JobEnvironment._usr_sig()
      # Start job with a 60 minutes timeout
      with mocked_slurm():
          executor = slurm.SlurmExecutor(
              folder=tmp_path, max_num_timeout=1
          )
          executor.update_parameters(time=60)
          job = executor.submit(test_core._three_time, 10)
  
      # simulate job start
      sig = get_signal_handler(job)
      fast_forward_clock(minutes=30)
  
      with mock_requeue(not_called=True):
          sig.bypass(signal.Signals.SIGTERM)
  
      # Preempt the job after 30 minutes, the job hasn't timeout.
      with pytest.raises(SystemExit), mock_requeue(called_with=1):
          sig.checkpoint_and_try_requeue(usr_sig)
  
      # Restart the job from scratch
      sig = get_signal_handler(job)
      fast_forward_clock(minutes=50)
  
      # Wait 50 minutes, now the job as timed out.
      with mock_requeue(not_called=True), pytest.raises(
          utils.UncompletedJobError,
          match="timed-out and not checkpointable",
      ):
          sig.checkpoint_and_try_requeue(usr_sig)
  
imports: import contextlib
  import os
  import signal
  import subprocess
  import typing
  from pathlib import Path
  from unittest.mock import patch
  import pytest
  import submitit
  from ..None import helpers
  from ..core import job_environment, submission, test_core, utils
  from ..core.core import Job
  from .None import slurm
label_desc: Use image node_id 11 for calling a global function with example usage: test_requeuing_not_checkpointable(tmp_path, fast_forward_clock) without return types