code: def test_correct_correct():
      from whoosh import qparser
  
      schema = fields.Schema(a=fields.TEXT())
      with TempIndex(schema) as ix:
          with ix.writer() as w:
              w.add_document(a="dworska")
              w.add_document(a="swojska")
  
          with ix.searcher() as s:
              s = ix.searcher()
              qtext = "dworska"
  
              qp = qparser.QueryParser("a", ix.schema)
              q = qp.parse(qtext, ix.schema)
              c = s.correct_query(q, qtext)
  
              assert c.string == "dworska"
              string = c.format_string(highlight.UppercaseFormatter())
              assert string == "dworska"
  
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 13 for calling a global function with example usage: test_correct_correct() without return types