code: def test_stored_fields2():
      schema = fields.Schema(
          content=fields.TEXT(stored=True),
          title=fields.TEXT(stored=True),
          summary=fields.STORED,
          path=fields.ID(stored=True),
      )
  
      storedkeys = ["content", "path", "summary", "title"]
      assert storedkeys == schema.stored_names()
  
      ix = RamStorage().create_index(schema)
  
      writer = ix.writer()
      writer.add_document(
          content=u("Content of this document."),
          title=u("This is the title"),
          summary=u("This is the summary"),
          path=u("/main"),
      )
      writer.add_document(
          content=u("Second document."),
          title=u("Second title"),
          summary=u("Summary numero due"),
          path=u("/second"),
      )
      writer.add_document(
          content=u("Third document."),
          title=u("Title 3"),
          summary=u("Summary treo"),
          path=u("/san"),
      )
      writer.commit()
  
      with ix.searcher() as s:
          doc = s.document(path="/main")
          assert doc is not None
          assert [doc[k] for k in sorted(doc.keys())] == [
              "Content of this document.",
              "/main",
              "This is the summary",
              "This is the title",
          ]
  
      ix.close()
  
imports: from __future__ import with_statement
  import random, threading, time
  import pytest
  from whoosh import fields, formats, reading
  from whoosh.compat import b, u, xrange
  from whoosh.reading import SegmentReader
  from whoosh.filedb.filestore import RamStorage
  from whoosh.util.testing import TempIndex
label_desc: Use image node_id 10 for calling a global function with example usage: test_stored_fields2() without return types