code: def test_doc_token_api_flags(en_tokenizer):
      text = "Give it back! He pleaded."
      tokens = en_tokenizer(text)
      assert tokens[0].check_flag(IS_ALPHA)
      assert not tokens[0].check_flag(IS_DIGIT)
      assert tokens[0].check_flag(IS_TITLE)
      assert tokens[1].check_flag(IS_LOWER)
      assert tokens[3].check_flag(IS_PUNCT)
      assert tokens[2].check_flag(IS_STOP)
      assert not tokens[5].check_flag(IS_STOP)
  
imports: import numpy
  import pytest
  from spacy.attrs import IS_ALPHA, IS_DIGIT, IS_LOWER, IS_PUNCT, IS_STOP, IS_TITLE
  from spacy.symbols import VERB
  from spacy.tokens import Doc
  from spacy.training import Example
  from spacy.vocab import Vocab
label_desc: Use image node_id 3 for calling a global function with example usage: test_doc_token_api_flags(en_tokenizer) without return types