code: def test_span_characters():
      ix = get_index()
      with ix.searcher() as s:
          pq = Phrase("text", ["bravo", "echo"])
          m = pq.matcher(s)
          while m.is_active():
              orig = " ".join(s.stored_fields(m.id())["text"])
              for span in m.spans():
                  startchar, endchar = span.startchar, span.endchar
                  assert orig[startchar:endchar] == "bravo echo"
              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 17 for calling a global function with example usage: test_span_characters() without return types