code: def wait_for_crossbar():
      from serpent.config import config
  
      while True:
          s = socket.socket()
  
          try:
              s.connect(
                  (
                      config["crossbar"]["host"],
                      config["crossbar"]["port"],
                  )
              )
              s.close()
              break
          except Exception:
              print("Waiting for Crossbar server...")
              time.sleep(0.1)
  
file_path: SerpentAI/serpent/utilities.py
imports: import sys
  import subprocess
  import socket
  import time
  import enum
label_desc: Use image node_id 6 for calling a global function with example usage: wait_for_crossbar() without return types