code: def clock(partition: str, duration: int):
      log = logging.getLogger(f"preemption_{partition}")
      tick_tack = ["tick", "tack"]
      try:
          for minute in range(duration - 5):
              log.info(tick_tack[minute % 2])
              time.sleep(60)
          logging.warning("*** Exited peacefully ***")
          return duration
      except:
          logging.warning(
              f"!!! Interrupted on: {datetime.now().isoformat()}"
          )
          raise
  
file_path: submitit/integration/preemption.py
imports: import getpass
  import logging
  import shutil
  import subprocess
  import time
  from datetime import datetime
  from pathlib import Path
  import submitit
  from submitit import AutoExecutor, Job
  from submitit.core import test_core
label_desc: Use image node_id 1 for calling a global function with example usage: clock(partition, duration) and returns: duration