code: def test_adding_e2e_actions_to_domain(default_importer: E2EImporter):
      additional_actions = ["Hi Joey.", "it's sunny outside."]
      stories = StoryGraph(
          [
              StoryStep(
                  "name",
                  events=[
                      UserUttered(
                          "greet_from_stories",
                          {"name": "greet_from_stories"},
                      ),
                      ActionExecuted("utter_greet_from_stories"),
                  ],
              ),
              StoryStep(
                  "name",
                  events=[
                      UserUttered(
                          "how are you doing?",
                          {"name": "greet_from_stories"},
                      ),
                      ActionExecuted(
                          additional_actions[0],
                          action_text=additional_actions[0],
                      ),
                      ActionExecuted(
                          additional_actions[1],
                          action_text=additional_actions[1],
                      ),
                      ActionExecuted(
                          additional_actions[1],
                          action_text=additional_actions[1],
                      ),
                  ],
              ),
          ]
      )
  
      def mocked_stories(*_: Any, **__: Any) -> StoryGraph:
          return stories
  
      # Patch to return our test stories
      default_importer.importer.get_stories = mocked_stories
  
      domain = default_importer.get_domain()
  
      assert all(
          action_name in domain.action_names_or_texts
          for action_name in additional_actions
      )
  
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 8 for calling a global function with example usage: test_adding_e2e_actions_to_domain(default_importer) and returns: stories