code: def test_single():
      schema = fields.Schema(
          id=fields.ID(stored=True), text=fields.TEXT
      )
      with TempIndex(schema, "single") as ix:
          w = ix.writer()
          w.add_document(id=u("1"), text=u("alfa"))
          w.commit()
  
          with ix.searcher() as s:
              assert ("text", u("alfa")) in s.reader()
              assert list(s.documents(id="1")) == [{"id": "1"}]
              assert list(s.documents(text="alfa")) == [{"id": "1"}]
              assert list(s.all_stored_fields()) == [{"id": "1"}]
  
imports: from __future__ import with_statement
  import random
  from collections import defaultdict
  from datetime import datetime
  import pytest
  from whoosh import analysis, fields, index, qparser, query, __version__
  from whoosh.compat import b, u, xrange, text_type, permutations
  from whoosh.filedb.filestore import RamStorage
  from whoosh.writing import IndexingError
  from whoosh.util.numeric import length_to_byte, byte_to_length
  from whoosh.util.testing import TempIndex, TempStorage
label_desc: Use image node_id 23 for calling a global function with example usage: test_single() without return types