code: def test_paged_highlights():
      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 echo foxtrot")
          )
          w.add_document(
              text=u("bravo charlie delta echo foxtrot golf")
          )
          w.add_document(
              text=u("charlie delta echo foxtrot golf hotel")
          )
          w.add_document(text=u("delta echo foxtrot golf hotel india"))
          w.add_document(text=u("echo foxtrot golf hotel india juliet"))
          w.add_document(text=u("foxtrot golf hotel india juliet kilo"))
  
      with ix.searcher() as s:
          q = query.Term("text", u("alfa"))
          page = s.search_page(q, 1, pagelen=3)
  
          page.results.fragmenter = highlight.WholeFragmenter()
          page.results.formatter = highlight.UppercaseFormatter()
          hi = page[0].highlights("text")
          assert hi == u("ALFA bravo charlie delta echo foxtrot")
  
imports: from __future__ import with_statement
  import pytest
  from whoosh import analysis, fields, formats, highlight, qparser, query
  from whoosh.codec.whoosh3 import W3Codec
  from whoosh.compat import u, xrange, text_type, permutations
  from whoosh.filedb.filestore import RamStorage
  from whoosh.util.testing import TempStorage, TempIndex
label_desc: Use image node_id 23 for calling a global function with example usage: test_paged_highlights() without return types