code: def test_html_escape():
      terms = frozenset(["bravo"])
      sa = analysis.StandardAnalyzer()
      wf = highlight.WholeFragmenter()
      hf = highlight.HtmlFormatter()
      htext = highlight.highlight(
          u('alfa <bravo "charlie"> delta'), terms, sa, wf, hf
      )
      assert (
          htext
          == 'alfa &lt;<strong class="match term0">bravo</strong> "charlie"&gt; delta'
      )
  
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 7 for calling a global function with example usage: test_html_escape() without return types