code: def test_delimited_attribute():
      ana = (
          analysis.RegexTokenizer(r"\S+")
          | analysis.DelimitedAttributeFilter()
      )
      results = [
          (t.text, t.boost) for t in ana(u("image render^2 file^0.5"))
      ]
      assert results == [("image", 1.0), ("render", 2.0), ("file", 0.5)]
  
imports: from __future__ import with_statement
  import pytest
  from whoosh import analysis, fields, qparser
  from whoosh.compat import b, u, unichr
  from whoosh.compat import dumps
  from whoosh.filedb.filestore import RamStorage
label_desc: Use image node_id 20 for calling a global function with example usage: test_delimited_attribute() without return types