code: def test_asyncwriter_no_stored():
      schema = fields.Schema(id=fields.ID, text=fields.TEXT)
      with TempIndex(schema, "asyncnostored") as ix:
          domain = (
              "alfa",
              "bravo",
              "charlie",
              "delta",
              "echo",
              "foxtrot",
              "golf",
              "hotel",
              "india",
          )
  
          writers = []
          # Simulate doing 20 (near-)simultaneous commits. If we weren't using
          # AsyncWriter, at least some of these would fail because the first
          # writer wouldn't be finished yet.
          for i in xrange(20):
              w = writing.AsyncWriter(ix)
              writers.append(w)
              w.add_document(
                  id=text_type(i),
                  text=" ".join(random.sample(domain, 5)),
              )
              w.commit()
  
          # Wait for all writers to finish before checking the results
          for w in writers:
              if w.running:
                  w.join()
  
          # Check whether all documents made it into the index.
          with ix.reader() as r:
              assert sorted(
                  [int(id) for id in r.lexicon("id")]
              ) == list(range(20))
  
imports: from __future__ import with_statement
  import random, time, threading
  import pytest
  from whoosh import analysis, fields, query, writing
  from whoosh.compat import b, u, xrange, text_type
  from whoosh.filedb.filestore import RamStorage
  from whoosh.util.testing import TempIndex
label_desc: Use image node_id 3 for calling a global function with example usage: test_asyncwriter_no_stored() without return types