code: def test_vector_reading():
      schema = fields.Schema(
          title=fields.TEXT,
          content=fields.TEXT(vector=formats.Frequency()),
      )
  
      with TempIndex(schema, "vectorreading") as ix:
          writer = ix.writer()
          writer.add_document(
              title=u("one"),
              content=u(
                  "This is the story of the black " + "hole story"
              ),
          )
          writer.commit()
  
          with ix.reader() as r:
              assert list(r.vector_as("frequency", 0, "content")) == [
                  (u("black"), 1),
                  (u("hole"), 1),
                  (u("story"), 2),
              ]
  
file_path: whoosh/tests/test_vectors.py
imports: from __future__ import with_statement
  from whoosh import fields, formats
  from whoosh.compat import u
  from whoosh.filedb.filestore import RamStorage
  from whoosh.util.testing import TempIndex
label_desc: Use image node_id 2 for calling a global function with example usage: test_vector_reading() without return types