code: def wait_for_queues(queue_system: QueuingSystem) -> None:
      queue_check_start_time = int(time.time())
  
      if hasattr(queue_system, "get_queue"):
          while not queue_system.get_queue("healthz").is_running:
              if (int(time.time()) - queue_check_start_time) % 10 == 0:
                  logger.warning("Waiting for http queues to start...")
              time.sleep(1)
      else:
          while not check_if_redis_running():
              if (int(time.time()) - queue_check_start_time) % 10 == 0:
                  logger.warning("Waiting for redis queues to start...")
              time.sleep(1)
  
imports: import inspect
  import logging
  import os
  import signal
  import sys
  import time
  import traceback
  from functools import partial
  from multiprocessing import Process
  from typing import Callable, Dict, List, Optional, Tuple, TypedDict
label_desc: Use image node_id 11 for calling a global function with example usage: wait_for_queues(queue_system) without return types