def METHOD_NAME():
    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