code: def secede(adjust=True):
      """Have this thread secede from the ThreadPoolExecutor
  
      See Also
      --------
      rejoin : rejoin the thread pool
      """
      thread_state.proceed = False
      with threads_lock:
          thread_state.executor._threads.remove(
              threading.current_thread()
          )
          if adjust:
              thread_state.executor._adjust_thread_count()
  
file_path: distributed/distributed/threadpoolexecutor.py
imports: from __future__ import annotations
  import itertools
  import logging
  import os
  import queue
  import threading
  from distributed import _concurrent_futures_thread
  from distributed.metrics import time
label_desc: Use image node_id 2 for calling a global function with example usage: secede(adjust) without return types