class_docstr: Configure logging using a dictionary-like object to describe the
  configuration.
class_docstr_tok: ["Configure","logging","using","a","dictionary-like","object","to","describe","the","configuration","."]
code: def _configure_queue_handler(self, klass, **kwargs):
      if "queue" in kwargs:
          q = kwargs["queue"]
      else:
          q = queue.Queue()  # unbounded
      rhl = kwargs.get("respect_handler_level", False)
      if "listener" in kwargs:
          lklass = kwargs["listener"]
      else:
          lklass = logging.handlers.QueueListener
      listener = lklass(
          q, *kwargs.get("handlers", []), respect_handler_level=rhl
      )
      handler = klass(q)
      handler.listener = listener
      return handler
  
imports: import errno
  import functools
  import io
  import logging
  import logging.handlers
  import os
  import queue
  import re
  import struct
  import threading
  import traceback
  from socketserver import ThreadingTCPServer, StreamRequestHandler
label_desc: Use image node_id 5 for calling the DictConfigurator obj's underlying member method code with example usage: obj._configure_queue_handler(klass) and returns: handler