code: def test_valid_data(
      default_keyword_intent_classifier: KeywordIntentClassifier,
  ):
      json_data = {
          "rasa_nlu_data": {
              "common_examples": [
                  {"text": "good", "intent": "affirm", "entities": []},
                  {"text": "bye", "intent": "goodbye", "entities": []},
                  {
                      "text": "see ya",
                      "intent": "goodbye",
                      "entities": [],
                  },
                  {"text": "yes", "intent": "affirm", "entities": []},
                  {"text": "ciao", "intent": "goodbye", "entities": []},
              ]
          }
      }
      rasa_reader = RasaReader()
      data = rasa_reader.read_from_json(json_data)
  
      with pytest.warns(None) as record:
          default_keyword_intent_classifier.train(data)
      assert len(record) == 0
  
file_path: rasa/tests/nlu/classifiers/test_keyword_classifier.py
imports: from typing import Text, Dict, Any, Optional, Union
  import pytest
  import copy
  from rasa.engine.graph import ExecutionContext
  from rasa.engine.storage.resource import Resource
  from rasa.engine.storage.storage import ModelStorage
  from rasa.nlu.classifiers.keyword_intent_classifier import KeywordIntentClassifier
  from rasa.shared.nlu.constants import TEXT, INTENT, PREDICTED_CONFIDENCE_KEY, INTENT_NAME_KEY
  from rasa.shared.nlu.training_data.formats.rasa import RasaReader
  import rasa.shared.nlu.training_data.loading
  from rasa.shared.nlu.training_data.message import Message
  from rasa.shared.nlu.training_data.training_data import TrainingData
label_desc: Use image node_id 5 for calling a global function with example usage: test_valid_data(default_keyword_intent_classifier) without return types