code: def test_prefix_address():
      fieldtype = fields.TEXT()
      schema = fields.Schema(f1=fieldtype, f2=fieldtype)
      with TempIndex(schema, "prefixaddr") as ix:
          with ix.writer() as w:
              w.add_document(
                  f1="aabc aawx aaqr aade", f2="aa12 aa34 aa56 aa78"
              )
  
          with ix.searcher() as s:
              sugs = s.suggest("f1", "aa", maxdist=2, prefix=2)
              assert sorted(sugs) == ["aabc", "aade", "aaqr", "aawx"]
  
              sugs = s.suggest("f2", "aa", maxdist=2, prefix=2)
              assert sorted(sugs) == ["aa12", "aa34", "aa56", "aa78"]
  
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 12 for calling a global function with example usage: test_prefix_address() without return types