code: def test_suggest_prefix():
      domain = (
          "Shoot To Kill",
          "Bloom, Split and Deviate",
          "Rankle the Seas and the Skies",
          "Lightning Flash Flame Shell",
          "Flower Wind Rage and Flower God Roar, Heavenly Wind Rage and "
          "Heavenly Demon Sneer",
          "All Waves, Rise now and Become my Shield, Lightning, Strike "
          "now and Become my Blade",
          "Cry, Raise Your Head, Rain Without end",
          "Sting All Enemies To Death",
          "Reduce All Creation to Ash",
          "Sit Upon the Frozen Heavens",
          "Call forth the Twilight",
      )
  
      schema = fields.Schema(
          content=fields.TEXT(
              stored=True,
          ),
          quick=fields.NGRAM(maxsize=10, stored=True),
      )
      with TempIndex(schema, "sugprefix") as ix:
          with ix.writer() as w:
              for item in domain:
                  content = u(item)
                  w.add_document(content=content, quick=content)
  
          with ix.searcher() as s:
              sugs = s.suggest("content", "ra", maxdist=2, prefix=2)
              assert sugs == ["rage", "rain"]
  
              sugs = s.suggest("content", "ra", maxdist=2, prefix=1)
              assert sugs == ["rage", "rain", "roar"]
  
imports: from __future__ import with_statement
  import gzip
  from whoosh import analysis, fields, highlight, query, spelling
  from whoosh.compat import u
  from whoosh.qparser import QueryParser
  from whoosh.support.levenshtein import levenshtein
  from whoosh.util.testing import TempIndex
label_desc: Use image node_id 11 for calling a global function with example usage: test_suggest_prefix() without return types