code: def __init__(self, tempstorage, buffersize=32 * 1024):
      assert isinstance(buffersize, int)
      self._tempstorage = tempstorage
      self._tempname = "%s.ctmp" % random_name()
      self._temp = tempstorage.create_file(self._tempname, mode="w+b")
      self._buffersize = buffersize
      self._streams = {}
  
imports: import errno
  import os
  import sys
  from threading import Lock
  from shutil import copyfileobj
  from whoosh.compat import BytesIO, memoryview_
  from whoosh.filedb.structfile import BufferFile, StructFile
  from whoosh.filedb.filestore import FileStorage, StorageError
  from whoosh.system import emptybytes
  from whoosh.util import random_name
label_desc: Use image node_id 1 to create a new CompoundWriter object from inherited base classes: object with example: obj = CompoundWriter(tempstorage, buffersize)