code: def __init__(
      self,
      storage,
      indexname,
      jobqueue,
      resultqueue,
      kwargs,
      multisegment,
  ):
      Process.__init__(self)
      self.storage = storage
      self.indexname = indexname
      self.jobqueue = jobqueue
      self.resultqueue = resultqueue
      self.kwargs = kwargs
      self.multisegment = multisegment
      self.running = True
  
imports: from __future__ import with_statement
  from multiprocessing import Process, Queue, cpu_count
  from whoosh.compat import queue, xrange, pickle
  from whoosh.codec import base
  from whoosh.writing import SegmentWriter
  from whoosh.externalsort import imerge
  from whoosh.util import random_name
label_desc: Use image node_id 1 to create a new SubWriterTask object from inherited base classes: Process with example: obj = SubWriterTask(storage, indexname, jobqueue, resultqueue, kwargs, multisegment)