code: def test_to_params(self):
      tokenizer = SpacyTokenizer()
      params = tokenizer.to_params()
      assert isinstance(params, Params)
      assert params.params == {
          "type": "spacy",
          "language": tokenizer._language,
          "pos_tags": tokenizer._pos_tags,
          "parse": tokenizer._parse,
          "ner": tokenizer._ner,
          "keep_spacy_tokens": tokenizer._keep_spacy_tokens,
          "split_on_spaces": tokenizer._split_on_spaces,
          "start_tokens": tokenizer._start_tokens,
          "end_tokens": tokenizer._end_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 10 for calling the TestSpacyTokenizer obj's underlying member method code with example usage: obj.test_to_params() without return types