code: def story_graph_from_paths(
      files: List[Text],
      domain: Domain,
      exclusion_percentage: Optional[int] = None,
  ) -> StoryGraph:
      """Returns the `StoryGraph` from paths."""
      from rasa.shared.core.training_data import loading
  
      story_steps = loading.load_data_from_files(
          files, domain, exclusion_percentage
      )
      return StoryGraph(story_steps)
  
imports: from typing import Iterable, Text, Optional, List
  from rasa.shared.core.domain import Domain
  from rasa.shared.core.training_data.structures import StoryGraph
  from rasa.shared.nlu.training_data.training_data import TrainingData
label_desc: Use image node_id 2 for calling a global function with example usage: story_graph_from_paths(files, domain, exclusion_percentage) and returns: StoryGraph