code: def test_url():
      sample = u(
          "Visit http://bitbucket.org/mchaput/whoosh or "
          + "urn:isbn:5930502 or http://www.apple.com/."
      )
  
      anas = [
          analysis.SimpleAnalyzer(analysis.url_pattern),
          analysis.StandardAnalyzer(
              analysis.url_pattern, stoplist=None
          ),
      ]
      for ana in anas:
          ts = [t.text for t in ana(sample)]
          assert ts == [
              u("visit"),
              u("http://bitbucket.org/mchaput/whoosh"),
              u("or"),
              u("urn:isbn:5930502"),
              u("or"),
              u("http://www.apple.com/"),
          ]
  
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 22 for calling a global function with example usage: test_url() without return types