code: def test_phrase_keywords():
      schema = fields.Schema(text=fields.TEXT(stored=True))
      ix = RamStorage().create_index(schema)
      with ix.writer() as w:
          w.add_document(text=u("alfa bravo charlie delta"))
          w.add_document(text=u("bravo charlie delta echo"))
          w.add_document(text=u("charlie delta echo foxtrot"))
          w.add_document(text=u("delta echo foxtrot alfa"))
          w.add_document(text=u("echo foxtrot alfa bravo"))
  
      with ix.searcher() as s:
          q = query.Phrase("text", u("alfa bravo").split())
          r = s.search(q)
          assert len(r) == 2
          kts = " ".join(t for t, score in r.key_terms("text"))
          assert kts == "alfa bravo charlie foxtrot delta"
  
imports: from __future__ import with_statement
  import pytest
  from whoosh import analysis, fields, formats, highlight, qparser, query
  from whoosh.codec.whoosh3 import W3Codec
  from whoosh.compat import u, xrange, text_type, permutations
  from whoosh.filedb.filestore import RamStorage
  from whoosh.util.testing import TempStorage, TempIndex
label_desc: Use image node_id 24 for calling a global function with example usage: test_phrase_keywords() without return types