code: def test_memory_multiwrite():
      from whoosh.codec import memory
  
      domain = [
          "alfa bravo charlie delta",
          "bravo charlie delta echo",
          "charlie delta echo foxtrot",
          "delta echo foxtrot india",
          "echo foxtrot india juliet",
      ]
  
      schema = fields.Schema(line=fields.TEXT(stored=True))
      codec = memory.MemoryCodec()
  
      for line in domain:
          with codec.writer(schema) as w:
              w.add_document(line=u(line))
  
      reader = codec.reader(schema)
      assert [sf["line"] for sf in reader.all_stored_fields()] == domain
      assert (
          " ".join(reader.field_terms("line"))
          == "alfa bravo charlie delta echo foxtrot india juliet"
      )
  
imports: from __future__ import with_statement
  import random
  from array import array
  import pytest
  from whoosh import analysis, fields, formats, query
  from whoosh.compat import u, b, text_type
  from whoosh.compat import array_tobytes, xrange
  from whoosh.codec import default_codec
  from whoosh.filedb.filestore import RamStorage
  from whoosh.util.testing import TempStorage
label_desc: Use image node_id 19 for calling a global function with example usage: test_memory_multiwrite() without return types