code: def test_context_fragment():
      terms = frozenset(("bravo", "india"))
      sa = analysis.StandardAnalyzer()
      cf = highlight.ContextFragmenter(surround=6)
      uc = highlight.UppercaseFormatter()
      htext = highlight.highlight(_doc, terms, sa, cf, uc)
      assert htext == "alfa BRAVO charlie...hotel INDIA 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 4 for calling a global function with example usage: test_context_fragment() without return types