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: Enqueue a record.
  
  The base implementation uses put_nowait. You may want to override
  this method if you want to use blocking, timeouts or custom queue
  implementations.
docstr_tok: ["Enqueue","a","record",".","The","base","implementation","uses","put_nowait",".","You","may","want","to","override","this","method","if","you","want","to","use","blocking",",","timeouts","or","custom","queue","implementations","."]
code: def enqueue(self, record):
      """
      Enqueue a record.
  
      The base implementation uses put_nowait. You may want to override
      this method if you want to use blocking, timeouts or custom queue
      implementations.
      """
      self.queue.put_nowait(record)
  
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 2 for calling the QueueHandler obj's underlying member method code with example usage: obj.enqueue(record) without return types