code: def test_spacy_pos_tags(text, expected_pos_tags, spacy_nlp):
      tk = SpacyTokenizer(SpacyTokenizer.get_default_config())
  
      message = Message.build(text=text)
      message.set(SPACY_DOCS[TEXT], spacy_nlp(text))
  
      tokens = tk.tokenize(message, attribute=TEXT)
  
      assert [t.data.get("pos") for t in tokens] == expected_pos_tags
  
file_path: rasa/tests/nlu/tokenizers/test_spacy_tokenizer.py
imports: import pytest
  from rasa.shared.nlu.training_data.training_data import TrainingData
  from rasa.shared.nlu.training_data.message import Message
  from rasa.nlu.constants import SPACY_DOCS, TOKENS_NAMES
  from rasa.shared.nlu.constants import TEXT, INTENT, RESPONSE
  from rasa.nlu.tokenizers.spacy_tokenizer import SpacyTokenizer
label_desc: Use image node_id 2 for calling a global function with example usage: test_spacy_pos_tags(text, expected_pos_tags, spacy_nlp) without return types