code: def test_creation():
      s = fields.Schema(
          content=fields.TEXT(phrase=True),
          title=fields.TEXT(stored=True),
          path=fields.ID(stored=True),
          tags=fields.KEYWORD(stored=True),
          quick=fields.NGRAM,
          note=fields.STORED,
      )
      st = RamStorage()
  
      ix = st.create_index(s)
      w = ix.writer()
      w.add_document(
          title=u("First"),
          content=u("This is the first document"),
          path=u("/a"),
          tags=u("first second third"),
          quick=u("First document"),
          note=u("This is the first document"),
      )
      w.add_document(
          content=u("Let's try this again"),
          title=u("Second"),
          path=u("/b"),
          tags=u("Uno Dos Tres"),
          quick=u("Second document"),
          note=u("This is the second document"),
      )
      w.commit()
  
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 1 for calling a global function with example usage: test_creation() without return types