code: def test_train_nlu(
      run_in_simple_project: Callable[..., RunResult], tmp_path: Path
  ):
      run_in_simple_project(
          "train",
          "nlu",
          "-c",
          "config.yml",
          "--nlu",
          "data/nlu.yml",
          "--out",
          "train_models",
      )
  
      model_dir = Path("train_models")
      assert model_dir.is_dir()
  
      models = list(model_dir.glob("*.tar.gz"))
      assert len(models) == 1
  
      model_file = models[0]
      assert model_file.name.startswith("nlu-")
  
      _, metadata = LocalModelStorage.from_model_archive(
          tmp_path, model_file
      )
  
      assert not any(
          issubclass(component.uses, Policy)
          for component in metadata.train_schema.nodes.values()
      )
      assert not any(
          issubclass(component.uses, Policy)
          for component in metadata.predict_schema.nodes.values()
      )
  
imports: import os
  import sys
  from pathlib import Path
  from _pytest.capture import CaptureFixture
  import pytest
  from typing import Callable, List
  from _pytest.pytester import RunResult
  from _pytest.tmpdir import TempPathFactory
  import rasa.shared.utils.io
  from rasa.constants import NUMBER_OF_TRAINING_STORIES_FILE
  from rasa.core.policies.policy import Policy
  from rasa.engine.storage.local_model_storage import LocalModelStorage
  from rasa.engine.storage.resource import Resource
  from rasa.shared.core.domain import Domain
  from rasa.model_training import CODE_NEEDS_TO_BE_RETRAINED, CODE_FORCED_TRAINING
  from rasa.shared.constants import LATEST_TRAINING_DATA_FORMAT_VERSION
  from rasa.shared.nlu.training_data.training_data import DEFAULT_TRAINING_DATA_OUTPUT_PATH
  import rasa.utils.io
  from tests.cli.conftest import RASA_EXE
label_desc: Use image node_id 15 for calling a global function with example usage: test_train_nlu(run_in_simple_project, tmp_path) without return types