code: def test_verify_bad_e2e_story_structure_when_text_identical(
      tmp_path: Path,
  ):
      story_file_name = tmp_path / "stories.yml"
      story_file_name.write_text(
          f"""
          version: "{LATEST_TRAINING_DATA_FORMAT_VERSION}"
          stories:
          - story: path 1
            steps:
            - user: |
                amazing!
            - action: utter_happy
          - story: path 2 (should always conflict path 1)
            steps:
            - user: |
                amazing!
            - action: utter_cheer_up
          """
      )
      # The two stories with identical user texts
      importer = RasaFileImporter(
          config_file="data/test_config/config_defaults.yml",
          domain_path="data/test_domains/default.yml",
          training_data_paths=[story_file_name],
      )
      validator = Validator.from_importer(importer)
      # force validator to not ignore warnings (default is True)
      assert not validator.verify_story_structure(ignore_warnings=False)
  
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 9 for calling a global function with example usage: test_verify_bad_e2e_story_structure_when_text_identical(tmp_path) without return types