code: def _read_and_renumber_run(self, path, offset):
      # Note that SortingPool._read_run() automatically deletes the run file
      # when it's finished
  
      gen = self.pool._read_run(path)
      # If offset is 0, just return the items unchanged
      if not offset:
          return gen
      else:
          # Otherwise, add the offset to each docnum
          return (
              (fname, text, docnum + offset, weight, value)
              for fname, text, docnum, weight, value in gen
          )
  
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 8 for calling the MpWriter obj's underlying member method code with example usage: obj._read_and_renumber_run(path, offset) and returns: gen, unknown