code: def test_html_format():
      terms = frozenset(("bravo", "india"))
      sa = analysis.StandardAnalyzer()
      cf = highlight.ContextFragmenter(surround=6)
      hf = highlight.HtmlFormatter()
      htext = highlight.highlight(_doc, terms, sa, cf, hf)
      assert (
          htext
          == 'alfa <strong class="match term0">bravo</strong> charlie...hotel <strong class="match term1">india</strong> juliet'
      )
  
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 6 for calling a global function with example usage: test_html_format() without return types