code: def test_pass_arguments_to_rasa_train(
      stack_config_path: Text, monkeypatch: MonkeyPatch
  ) -> None:
      # Create parser
      parser = argparse.ArgumentParser()
      sub_parser = parser.add_subparsers()
      interactive.add_subparser(sub_parser, [])
  
      # Parse interactive command
      args = parser.parse_args(
          ["interactive", "--config", stack_config_path]
      )
      interactive._set_not_required_args(args)
  
      # Mock actual training
      mock = Mock(return_value=TrainingResult(code=0))
      monkeypatch.setattr(rasa, "train", mock.method)
  
      # If the `Namespace` object does not have all required fields this will throw
      train.run_training(args)
  
      # Assert `train` was actually called
      mock.method.assert_called_once()
  
imports: import argparse
  from typing import Callable, Text
  from unittest.mock import Mock, ANY
  import pytest
  from _pytest.monkeypatch import MonkeyPatch
  from _pytest.pytester import RunResult
  import rasa
  from rasa.core.train import do_interactive_learning
  from rasa.core.training import interactive
  from rasa.cli import interactive, train
  from rasa.model_training import TrainingResult
  from tests.cli.conftest import RASA_EXE
label_desc: Use image node_id 3 for calling a global function with example usage: test_pass_arguments_to_rasa_train(stack_config_path, monkeypatch) without return types