code: def shutdown_cached_queue(queue, logger=None, delete_queue=True):
      if queue is None:
          return
  
      _queue_cache.pop(queue.get_name(), None)
      if logger is not None:
          logger.info(
              "Removed queue named %s from queue cache.",
              queue.get_name(),
          )
  
      queue.shutdown(delete_queue)
  
imports: import threading
  from studio.queues.rabbit_queue import RMQueue
  from studio.util.util import check_for_kb_interrupt
label_desc: Use image node_id 2 for calling a global function with example usage: shutdown_cached_queue(queue, logger, delete_queue) without return types