code: def wait():
      """Wait for console exit and stop all model servers."""
      try:
          while len(_threads()) > 0:
              time.sleep(0.1)
      except (KeyboardInterrupt, SystemExit):
          _log(True, "\n")
          stop()
  
imports: import errno
  import http.server
  import importlib.util
  import json
  import os
  import random
  import re
  import socket
  import socketserver
  import sys
  import threading
  import time
  import webbrowser
  import urllib.parse
label_desc: Use image node_id 8 for calling a global function with example usage: wait() without return types