code: def test_span_contains():
      ix = get_index()
      with ix.searcher() as s:
          nq = spans.SpanNear(
              Term("text", "alfa"), Term("text", "charlie"), slop=3
          )
          cq = spans.SpanContains(nq, Term("text", "echo"))
  
          m = cq.matcher(s)
          ls = []
          while m.is_active():
              orig = s.stored_fields(m.id())["text"]
              ls.append(" ".join(orig))
              m.next()
          ls.sort()
          assert ls == [
              "alfa bravo echo charlie",
              "alfa bravo echo charlie",
              "alfa delta echo charlie",
              "alfa echo bravo charlie",
              "alfa echo bravo charlie",
              "alfa echo charlie bravo",
              "alfa echo charlie bravo",
              "alfa echo charlie delta",
              "alfa echo delta charlie",
              "bravo alfa echo charlie",
              "bravo alfa echo charlie",
              "delta alfa echo charlie",
          ]
  
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 12 for calling a global function with example usage: test_span_contains() without return types