code: def test_highlight_setters():
      schema = fields.Schema(text=fields.TEXT)
      ix = RamStorage().create_index(schema)
      w = ix.writer()
      w.add_document(text=u("Hello"))
      w.commit()
  
      r = ix.searcher().search(query.Term("text", "hello"))
      hl = highlight.Highlighter()
      ucf = highlight.UppercaseFormatter()
      r.highlighter = hl
      r.formatter = ucf
      assert hl.formatter is ucf
  
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 14 for calling a global function with example usage: test_highlight_setters() without return types