code: def trigger_exit(mode):
      """Start the shutdown process."""
      with lock:
          global exit_mode
          if exit_mode is None:
              exit_mode = ExitMode(mode)
      exiting.set()
  
imports: import argparse
  import collections
  import enum
  import os
  import signal
  import subprocess
  import sys
  import threading
  import traceback
  import psutil
  from fiftyone.service.ipc import IPCServer
label_desc: Use image node_id 1 for calling a global function with example usage: trigger_exit(mode) without return types