code: def test_intraword_chars():
      iwf = analysis.IntraWordFilter(mergewords=True, mergenums=True)
      ana = (
          analysis.RegexTokenizer(r"\S+")
          | iwf
          | analysis.LowercaseFilter()
      )
  
      target = u("WiKiWo-rd")
      tokens = [
          (t.text, t.startchar, t.endchar)
          for t in ana(target, chars=True)
      ]
      assert tokens == [
          ("wi", 0, 2),
          ("ki", 2, 4),
          ("wo", 4, 6),
          ("rd", 7, 9),
          ("wikiword", 0, 9),
      ]
  
      target = u("Zo WiKiWo-rd")
      tokens = [
          (t.text, t.startchar, t.endchar)
          for t in ana(target, chars=True)
      ]
      assert tokens == [
          ("zo", 0, 2),
          ("wi", 3, 5),
          ("ki", 5, 7),
          ("wo", 7, 9),
          ("rd", 10, 12),
          ("wikiword", 3, 12),
      ]
  
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 12 for calling a global function with example usage: test_intraword_chars() without return types