code: def test_excludematcher():
      schema = fields.Schema(content=fields.TEXT(stored=True))
      ix = RamStorage().create_index(schema)
  
      domain = ("alfa", "bravo", "charlie", "delta")
  
      for _ in xrange(3):
          w = ix.writer()
          for ls in permutations(domain):
              w.add_document(content=u(" ").join(ls))
          w.commit(merge=False)
  
      w = ix.writer()
      w.delete_document(5)
      w.delete_document(10)
      w.delete_document(28)
      w.commit(merge=False)
  
      q = Term("content", "bravo")
      with ix.searcher() as s:
          m = q.matcher(s)
          while m.is_active():
              content = s.stored_fields(m.id())["content"].split()
              spans = m.spans()
              for span in spans:
                  assert content[span.start] == "bravo"
              m.next()
  
imports: from __future__ import with_statement
  from whoosh import analysis, fields, formats
  from whoosh.compat import u, xrange, permutations
  from whoosh.filedb.filestore import RamStorage
  from whoosh.query import spans
  from whoosh.query import And, Or, Term, Phrase
  from whoosh.util.testing import TempIndex
label_desc: Use image node_id 3 for calling a global function with example usage: test_excludematcher() without return types