code: def test_train_nlu_without_nlu_pipeline():
      with pytest.raises(InvalidConfigException):
          DefaultV1Recipe().graph_config_for_recipe(
              {"pipeline": []}, {}, TrainingType.NLU
          )
  
imports: from typing import Text, Dict, Any, Set, List
  import shutil
  import pytest
  from _pytest.capture import CaptureFixture
  from pathlib import Path
  from rasa.engine.constants import PLACEHOLDER_TRACKER
  from rasa.shared.core.trackers import DialogueStateTracker
  from rasa.shared.nlu.training_data.message import Message
  import rasa.shared.utils.io
  from rasa.shared.constants import ASSISTANT_ID_KEY, CONFIG_AUTOCONFIGURABLE_KEYS
  from rasa.core.policies.ted_policy import TEDPolicy
  from rasa.engine.graph import GraphSchema, GraphComponent, ExecutionContext
  from rasa.engine.recipes.default_recipe import DefaultV1Recipe, DefaultV1RecipeRegisterException
  from rasa.engine.recipes.recipe import Recipe
  from rasa.engine.storage.resource import Resource
  from rasa.engine.storage.storage import ModelStorage
  from rasa.graph_components.validators.default_recipe_validator import DefaultV1RecipeValidator
  from rasa.nlu.classifiers.mitie_intent_classifier import MitieIntentClassifier
  from rasa.nlu.classifiers.sklearn_intent_classifier import SklearnIntentClassifier
  from rasa.nlu.extractors.mitie_entity_extractor import MitieEntityExtractor
  from rasa.shared.exceptions import InvalidConfigException
  from rasa.shared.data import TrainingType
  import rasa.engine.validation
  from rasa.shared.importers.rasa import RasaFileImporter
label_desc: Use image node_id 17 for calling a global function with example usage: test_train_nlu_without_nlu_pipeline() without return types