code: def test_composing_functions():
      tokenizer = analysis.RegexTokenizer()
  
      def filter(tokens):
          for t in tokens:
              t.text = t.text.upper()
              yield t
  
      with pytest.raises(TypeError):
          tokenizer | filter
  
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 7 for calling a global function with example usage: test_composing_functions() without return types