code: def test_different_story_order_doesnt_change_nlu_training_data(
      default_importer: E2EImporter,
  ):
      stories = [
          StoryStep(
              "name",
              events=[
                  UserUttered(intent={"name": "greet"}),
                  ActionExecuted("utter_greet_from_stories"),
                  ActionExecuted("hi", action_text="hi"),
              ],
          ),
          StoryStep(
              "name",
              events=[
                  UserUttered("bye", {"name": "bye"}),
                  ActionExecuted("utter_greet"),
                  ActionExecuted("hi", action_text="hi"),
                  ActionExecuted("bye", action_text="bye"),
              ],
          ),
      ]
  
      def mocked_stories(*_: Any, **__: Any) -> StoryGraph:
          return StoryGraph(stories)
  
      # Patch to return our test stories
      default_importer.importer.get_stories = mocked_stories
  
      training_data = default_importer.get_nlu_data()
  
      # Pretend the order of  the stories changed. This should have no
      # effect on the NLU training data
      stories = list(reversed(stories))
  
      # Make sure importer doesn't cache stories
      default_importer._cached_stories = None
  
      training_data2 = default_importer.get_nlu_data()
  
      assert hash(training_data) == hash(training_data2)
  
imports: import os
  from pathlib import Path
  from typing import Text, Dict, Type, List, Any
  import pytest
  from rasa.shared.constants import DEFAULT_CONFIG_PATH, DEFAULT_DOMAIN_PATH, DEFAULT_DATA_PATH, DEFAULT_CONVERSATION_TEST_PATH
  import rasa.shared.utils.io
  import rasa.shared.core.constants
  from rasa.shared.core.events import SlotSet, UserUttered, ActionExecuted
  from rasa.shared.core.training_data.structures import StoryStep, StoryGraph
  from rasa.shared.importers.importer import TrainingDataImporter, NluDataImporter, E2EImporter, ResponsesSyncImporter
  from rasa.shared.importers.multi_project import MultiProjectImporter
  from rasa.shared.importers.rasa import RasaFileImporter
  from rasa.shared.nlu.constants import ACTION_TEXT, ACTION_NAME, INTENT, TEXT
  from rasa.shared.nlu.training_data.message import Message
label_desc: Use image node_id 6 for calling a global function with example usage: test_different_story_order_doesnt_change_nlu_training_data(default_importer) and returns: StoryGraph