code: def test_keep_spacy_tokens(self):
      word_tokenizer = SpacyTokenizer()
      sentence = "This should be an allennlp Token"
      tokens = word_tokenizer.tokenize(sentence)
      assert tokens
      assert all(isinstance(token, Token) for token in tokens)
  
      word_tokenizer = SpacyTokenizer(keep_spacy_tokens=True)
      sentence = "This should be a spacy Token"
      tokens = word_tokenizer.tokenize(sentence)
      assert tokens
      assert all(
          isinstance(token, spacy.tokens.Token) for token in tokens
      )
  
file_path: allennlp/tests/data/tokenizers/spacy_tokenizer_test.py
imports: import spacy
  from allennlp.common import Params
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data.tokenizers import Token, SpacyTokenizer
label_desc: Use image node_id 9 for calling the TestSpacyTokenizer obj's underlying member method code with example usage: obj.test_keep_spacy_tokens() without return types