code: def test_issue351(en_tokenizer):
      doc = en_tokenizer("   This is a cat.")
      assert doc[0].idx == 0
      assert len(doc[0]) == 3
      assert doc[1].idx == 3
  
file_path: spacy/spacy/tests/lang/en/test_tokenizer.py
imports: import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_issue351(en_tokenizer) without return types