code: def test_process_tokenizer_action_test(
      text: Text, expected_tokens: List[Text]
  ):
      tk = create_whitespace_tokenizer(
          {"intent_tokenization_flag": True}
      )
  
      message = Message.build(text=text)
      message.set(ACTION_NAME, text)
      message.set(ACTION_TEXT, text)
  
      tk.process([message])
  
      tokens = message.get(TOKENS_NAMES[ACTION_TEXT])
      assert [t.text for t in tokens] == expected_tokens
  
      message.set(ACTION_TEXT, "")
      tk.process([message])
      tokens = message.get(TOKENS_NAMES[ACTION_NAME])
      assert [t.text for t in tokens] == [text]
  
imports: from typing import Any, Dict, Optional, Tuple, Text, List
  import pytest
  from rasa.nlu.tokenizers.tokenizer import Token
  from rasa.nlu.constants import TOKENS_NAMES
  from rasa.shared.nlu.constants import TEXT, INTENT, RESPONSE, INTENT_RESPONSE_KEY, 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 8 for calling a global function with example usage: test_process_tokenizer_action_test(text, expected_tokens) without return types