code: def training_data_from_paths(
      paths: Iterable[Text], language: Text
  ) -> TrainingData:
      from rasa.shared.nlu.training_data import loading
  
      training_data_sets = [
          loading.load_data(nlu_file, language) for nlu_file in paths
      ]
      return TrainingData().merge(*training_data_sets)
  
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 1 for calling a global function with example usage: training_data_from_paths(paths, language) and returns: TrainingData