code: def training_data(nlu_as_json_path: Text):
      return rasa.shared.nlu.training_data.loading.load_data(
          nlu_as_json_path
      )
  
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 1 for calling a global function with example usage: training_data(nlu_as_json_path) and returns: rasa