class_docstr: This handler sends events to a queue. Typically, it would be used together
  with a multiprocessing Queue to centralise logging to file in one process
  (in a multi-process application), so as to avoid file write contention
  between processes.
  
  This code is new in Python 3.2, but this class can be copy pasted into
  user code for use with earlier Python versions.
class_docstr_tok: ["This","handler","sends","events","to","a","queue",".","Typically",",","it","would","be","used","together","with","a","multiprocessing","Queue","to","centralise","logging","to","file","in","one","process","(","in","a","multi-process","application",")",",","so","as","to","avoid","file","write","contention","between","processes",".","This","code","is","new","in","Python","3.2",",","but","this","class","can","be","copy","pasted","into","user","code","for","use","with","earlier","Python","versions","."]
docstr: Initialise an instance, using the passed queue.
docstr_tok: ["Initialise","an","instance",",","using","the","passed","queue","."]
code: def __init__(self, queue):
      """
      Initialise an instance, using the passed queue.
      """
      logging.Handler.__init__(self)
      self.queue = queue
  
imports: import json
  import logging
  import os
  import sys
  from collections import OrderedDict
  from tqdm import tqdm
  from tqdm.auto import tqdm
label_desc: Use image node_id 1 to create a new QueueHandler object from inherited base classes: logging with example: obj = QueueHandler(queue)