code: def test_nlu_only(project: Text):
      config_path = os.path.join(project, DEFAULT_CONFIG_PATH)
      default_data_path = os.path.join(project, DEFAULT_DATA_PATH)
      actual = TrainingDataImporter.load_nlu_importer_from_config(
          config_path, training_data_paths=[default_data_path]
      )
  
      assert isinstance(actual, NluDataImporter)
      assert isinstance(actual._importer, ResponsesSyncImporter)
  
      stories = actual.get_stories()
      assert stories.is_empty()
  
      conversation_tests = actual.get_stories()
      assert conversation_tests.is_empty()
  
      domain = actual.get_domain()
      assert domain.is_empty()
  
      config = actual.get_config()
      assert config
  
      nlu_data = actual.get_nlu_data()
      assert not nlu_data.is_empty()
  
imports: import os
  from pathlib import Path
  from typing import Text, Dict, Type, List, Any
  import pytest
  from rasa.shared.constants import DEFAULT_CONFIG_PATH, DEFAULT_DOMAIN_PATH, DEFAULT_DATA_PATH, DEFAULT_CONVERSATION_TEST_PATH
  import rasa.shared.utils.io
  import rasa.shared.core.constants
  from rasa.shared.core.events import SlotSet, UserUttered, ActionExecuted
  from rasa.shared.core.training_data.structures import StoryStep, StoryGraph
  from rasa.shared.importers.importer import TrainingDataImporter, NluDataImporter, E2EImporter, ResponsesSyncImporter
  from rasa.shared.importers.multi_project import MultiProjectImporter
  from rasa.shared.importers.rasa import RasaFileImporter
  from rasa.shared.nlu.constants import ACTION_TEXT, ACTION_NAME, INTENT, TEXT
  from rasa.shared.nlu.training_data.message import Message
label_desc: Use image node_id 4 for calling a global function with example usage: test_nlu_only(project) without return types