class_docstr: A simple task queue for processing jobs in a thread pool.
class_docstr_tok: ["A","simple","task","queue","for","processing","jobs","in","a","thread","pool","."]
code: def worker(self):
      while True:
          item, args, kwargs = self.get()
          item(*args, **kwargs)
          self.task_done()
  
imports: from collections.abc import Callable, Collection, Iterable, Iterator, Mapping, Sequence
  import itertools
  import queue
  import threading
  import time
  from typing import Any, Optional, TypeVar, Union
  import uuid
  from lit_nlp.api import types
  import numpy
label_desc: Use image node_id 4 for calling the TaskQueue obj's underlying member method code with example usage: obj.worker() without return types