code: def _python_exit():
      global _shutdown
      with _global_shutdown_lock:
          _shutdown = True
      items = list(_threads_queues.items())
      for t, q in items:
          q.put(None)
      for t, q in items:
          t.join()
  
imports: from concurrent.futures import _base
  import itertools
  import queue
  import threading
  import types
  import weakref
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: _python_exit() without return types