class_docstr: Create a queue object with a given maximum size.
  
  If maxsize is <= 0, the queue size is infinite.
docstr: Return True if the queue is empty, False otherwise (not reliable!).
  
  This method is likely to be removed at some point.  Use qsize() == 0
  as a direct substitute, but be aware that either approach risks a race
  condition where a queue can grow before the result of empty() or
  qsize() can be used.
  
  To create code that needs to wait for all queued tasks to be
  completed, the preferred technique is to use the join() method.
docstr_tok: ["Return","True","if","the","queue","is","empty",",","False","otherwise","(","not","reliable","!",")",".","This","method","is","likely","to","be","removed","at","some","point",".","Use","qsize","(",")","==","0","as","a","direct","substitute",",","but","be","aware","that","either","approach","risks","a","race","condition","where","a","queue","can","grow","before","the","result","of","empty","(",")","or","qsize","(",")","can","be","used",".","To","create","code","that","needs","to","wait","for","all","queued","tasks","to","be","completed",",","the","preferred","technique","is","to","use","the","join","(",")","method","."]
code: def empty(self):
      """Return True if the queue is empty, False otherwise (not reliable!).
  
      This method is likely to be removed at some point.  Use qsize() == 0
      as a direct substitute, but be aware that either approach risks a race
      condition where a queue can grow before the result of empty() or
      qsize() can be used.
  
      To create code that needs to wait for all queued tasks to be
      completed, the preferred technique is to use the join() method.
      """
      with self.mutex:
          return not self._qsize()
  
imports: import threading
  import types
  from collections import deque
  from heapq import heappush, heappop
  from time import monotonic
label_desc: Use image node_id 5 for calling the Queue obj's underlying member method code with example usage: obj.empty() and returns: unknown