code: def load_data_from_resource(
      resource: Union[Text],
      domain: Domain,
      exclusion_percentage: Optional[int] = None,
  ) -> List["StoryStep"]:
      """Loads core training data from the specified folder.
  
      Args:
          resource: Folder/File with core training data files.
          domain: Domain object.
          exclusion_percentage: Identifies the percentage of training data that
                                should be excluded from the training.
  
      Returns:
          Story steps from the training data.
      """
      if not os.path.exists(resource):
          raise ValueError(f"Resource '{resource}' does not exist.")
  
      return load_data_from_files(
          rasa.shared.utils.io.list_files(resource),
          domain,
          exclusion_percentage,
      )
  
file_path: rasa/rasa/shared/core/training_data/loading.py
imports: import logging
  import os
  from typing import Text, Optional, List, Union
  import rasa.shared.data
  import rasa.shared.utils.io
  from rasa.shared.core.domain import Domain
  from rasa.shared.core.training_data.story_reader.story_reader import StoryReader
  from rasa.shared.core.training_data.story_reader.yaml_story_reader import YAMLStoryReader
  from rasa.shared.core.training_data.structures import StoryStep
  from rasa.shared.data import YAML_FILE_EXTENSIONS
label_desc: Use image node_id 3 for calling a global function with example usage: load_data_from_resource(resource, domain, exclusion_percentage) and returns: load_data_from_files