class_docstr: Class for processing tasks in a queue.
  
  Parameters
  ----------
  task_queue :
      Queue with tasks, i.e. tuples ('processor', 'infile', 'outfile')
  
  Notes
  -----
  Usually, multiple instances are created via :func:`process_batch`.
class_docstr_tok: ["Class","for","processing","tasks","in","a","queue",".","Parameters","--","--","--","--","--","task_queue",":","Queue","with","tasks",",","i.e",".","tuples","(","'processor","'",",","'infile","'",",","'outfile","'",")","Notes","--","--","-","Usually",",","multiple","instances","are","created","via",":","func",":","`","process_batch","`","."]
docstr: Process all tasks from the task queue.
code: def run(self):
      """Process all tasks from the task queue."""
      from .io.audio import LoadAudioFileError
  
      while True:
          # get the task tuple
          processor, infile, outfile, kwargs = self.task_queue.get()
          try:
              # process the Processor with the data
              _process((processor, infile, outfile, kwargs))
          except LoadAudioFileError as e:
              print(e)
          finally:
              # signal that it is done
              self.task_queue.task_done()
  
imports: from __future__ import absolute_import, division, print_function
  import argparse
  import itertools
  import multiprocessing
  import os
  import sys
  from collections.abc import MutableSequence
  import numpy
  from .utils import integer_types
label_desc: Use image node_id 2 for calling the _ParallelProcess obj's underlying member method code with example usage: obj.run() without return types