code: def test_verify_nlu_with_e2e_story(
      tmp_path: Path, nlu_data_path: Path
  ):
      story_file_name = tmp_path / "stories.yml"
      with open(story_file_name, "w") as file:
          file.write(
              """
              stories:
              - story: path 1
                steps:
                - user: |
                    hello assistant! Can you help me today?
                - intent: greet
                - action: utter_greet
                - intent: affirm
                - action: utter_greet
                - intent: bot_challenge
                - action: utter_greet
                - intent: deny
                - action: goodbye
                - intent: goodbye
                - action: utter_goodbye
                - intent: mood_great
                - action: utter_happy
                - intent: mood_unhappy
                - action: utter_cheer_up
                - action: utter_did_that_help
                - action: utter_iamabot
              """
          )
      importer = RasaFileImporter(
          config_file="data/test_moodbot/config.yml",
          domain_path="data/test_moodbot/domain.yml",
          training_data_paths=[story_file_name, nlu_data_path],
      )
  
      validator = Validator.from_importer(importer)
      # Since the nlu file actually fails validation,
      # record warnings to make sure that the only raised warning
      # is about the duplicate example 'good afternoon'
      with pytest.warns(UserWarning) as record:
          validator.verify_nlu(ignore_warnings=False)
          assert len(record) == 1
          assert (
              "The example 'good afternoon' was found labeled with multiple different"
              in record[0].message.args[0]
          )
  
imports: import textwrap
  import warnings
  from typing import Text
  import pytest
  from _pytest.logging import LogCaptureFixture
  from rasa.shared.constants import LATEST_TRAINING_DATA_FORMAT_VERSION
  from rasa.validator import Validator
  from rasa.shared.importers.rasa import RasaFileImporter
  from pathlib import Path
label_desc: Use image node_id 2 for calling a global function with example usage: test_verify_nlu_with_e2e_story(tmp_path, nlu_data_path) without return types