code: def test_spannear2():
      schema = fields.Schema(id=fields.STORED, text=fields.TEXT)
      with TempIndex(schema) as ix:
          with ix.writer() as w:
              w.add_document(id="a", text="alfa echo")
              w.add_document(id="b", text="alfa bravo echo")
              w.add_document(id="c", text="alfa bravo charlie echo")
              w.add_document(
                  id="d", text="alfa bravo charlie delta echo"
              )
              w.add_document(
                  id="e", text="alfa bravo charlie fox delta echo"
              )
              w.add_document(
                  id="f", text="charlie delta echo fox golf hotel"
              )
  
          with ix.searcher() as s:
              q = spans.SpanNear2(
                  [Term("text", "bravo"), Term("text", "echo")], slop=3
              )
              assert q.estimate_size(s.reader()) == 4
  
              ids = "".join(sorted(hit["id"] for hit in s.search(q)))
              assert ids == "bcd"
  
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 9 for calling a global function with example usage: test_spannear2() without return types