code: def test_sentence_fragment():
      text = u(
          "This is the first sentence. This one doesn't have the word. "
          + "This sentence is the second. Third sentence here."
      )
      terms = ("sentence",)
      sa = analysis.StandardAnalyzer(stoplist=None)
      sf = highlight.SentenceFragmenter()
      uc = highlight.UppercaseFormatter()
      htext = highlight.highlight(text, terms, sa, sf, uc)
      assert (
          htext
          == "This is the first SENTENCE...This SENTENCE is the second...Third SENTENCE here"
      )
  
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 3 for calling a global function with example usage: test_sentence_fragment() without return types