code: def __init__(self, *args, **kwargs):
      MpWriter.__init__(self, *args, **kwargs)
      self.multisegment = 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 MultiSegmentWriter object from inherited base classes: MpWriter with example: obj = MultiSegmentWriter()