code: def test_highlight_wildcards():
      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 cookie echo"))
  
      with ix.searcher() as s:
          qp = qparser.QueryParser("text", ix.schema)
          q = qp.parse(u("c*"))
          r = s.search(q)
          assert r.scored_length() == 1
          r.formatter = highlight.UppercaseFormatter()
          hit = r[0]
          assert (
              hit.highlights("text")
              == "alfa bravo CHARLIE delta COOKIE echo"
          )
  
imports: from __future__ import with_statement
  import pytest
  from whoosh import analysis, highlight, fields, qparser, query
  from whoosh.compat import u
  from whoosh.filedb.filestore import RamStorage
  from whoosh.util.testing import TempIndex
label_desc: Use image node_id 14 for calling a global function with example usage: test_highlight_wildcards() without return types