code: def test_whitespace_processing_with_attribute():
      message = Message(
          data={
              TEXT: "Any Mexican restaurant will do",
              "intent": "restaurant_search",
              "entities": [
                  {
                      "start": 4,
                      "end": 11,
                      "value": "Mexican",
                      "entity": "cuisine",
                  }
              ],
          }
      )
      expected_tokens_intent = ["restaurant_search"]
      expected_tokens_text = [
          "Any",
          "Mexican",
          "restaurant",
          "will",
          "do",
      ]
      component_config = {"case_sensitive": False}
      tk = create_whitespace_tokenizer(component_config)
      tk.process([message])
      tokens_intent = message.get(TOKENS_NAMES[INTENT])
      tk.process([message])
      tokens_text = message.get(TOKENS_NAMES[TEXT])
      assert [t.text for t in tokens_intent] == expected_tokens_intent
      assert [t.text for t in tokens_text] == expected_tokens_text
  
      message = Message(
          data={
              TEXT: "Where are you going?",
              ACTION_NAME: "Where are you going?",
              ACTION_TEXT: "Where are you going?",
          }
      )
      expected_action_tokens_text = ["Where", "are", "you", "going"]
  
      component_config = {"case_sensitive": False}
      tk = create_whitespace_tokenizer(component_config)
      tk.process([message])
      tokens_action_text = message.get(TOKENS_NAMES[ACTION_TEXT])
      tk.process([message])
      tokens_text = message.get(TOKENS_NAMES[TEXT])
      assert [
          t.text for t in tokens_action_text
      ] == expected_action_tokens_text
      assert [
          t.text for t in tokens_text
      ] == expected_action_tokens_text
  
file_path: rasa/tests/nlu/tokenizers/test_whitespace_tokenizer.py
imports: import pytest
  from typing import Dict, Optional
  import rasa.shared.utils.io
  from rasa.nlu.constants import TOKENS_NAMES
  from rasa.shared.nlu.constants import TEXT, INTENT, ACTION_TEXT, ACTION_NAME
  from rasa.shared.nlu.training_data.training_data import TrainingData
  from rasa.shared.nlu.training_data.message import Message
  from rasa.nlu.tokenizers.whitespace_tokenizer import WhitespaceTokenizer
label_desc: Use image node_id 7 for calling a global function with example usage: test_whitespace_processing_with_attribute() without return types