code: def test_intraword():
      iwf = analysis.IntraWordFilter(mergewords=True, mergenums=True)
      ana = analysis.RegexTokenizer(r"\S+") | iwf
  
      def check(text, ls):
          assert [(t.pos, t.text) for t in ana(text)] == ls
  
      check(
          u("PowerShot)"), [(0, "Power"), (1, "Shot"), (1, "PowerShot")]
      )
      check(
          u("A's+B's&C's"), [(0, "A"), (1, "B"), (2, "C"), (2, "ABC")]
      )
      check(
          u("Super-Duper-XL500-42-AutoCoder!"),
          [
              (0, "Super"),
              (1, "Duper"),
              (2, "XL"),
              (2, "SuperDuperXL"),
              (3, "500"),
              (4, "42"),
              (4, "50042"),
              (5, "Auto"),
              (6, "Coder"),
              (6, "AutoCoder"),
          ],
      )
  
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 11 for calling a global function with example usage: test_intraword() without return types