code: def test_start_pos():
      from whoosh import formats
  
      ana = analysis.RegexTokenizer(r"\S+") | analysis.LowercaseFilter()
      kw = {"positions": True}
      tks = formats.tokens(u("alfa bravo charlie delta"), ana, kw)
      assert [t.pos for t in tks] == [0, 1, 2, 3]
  
      kw["start_pos"] = 3
      ts = [
          t.copy()
          for t in formats.tokens(u("A B C D").split(), ana, kw)
      ]
      assert " ".join([t.text for t in ts]) == "A B C D"
      assert [t.pos for t in ts] == [3, 4, 5, 6]
  
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 24 for calling a global function with example usage: test_start_pos() without return types