code: def get_transcription(trans_list):
      """
      Returns a dictionary with the transcription of each sentence in the dataset.
  
      Arguments
      ---------
      trans_list : list of str
          The list of transcription files.
      """
      # Processing all the transcription files in the list
      trans_dict = {}
      for trans_file in trans_list:
          # Reading the text file
          with open(trans_file) as f:
              for line in f:
                  uttid = line.split(" ")[0]
                  text = line.rstrip().split(" ")[1:]
                  text = " ".join(text)
                  trans_dict[uttid] = text
  
      logger.info("Transcription files read!")
      return trans_dict
  
file_path: speechbrain/templates/speech_recognition/ASR/mini_librispeech_prepare.py
imports: import os
  import json
  import shutil
  import logging
  from speechbrain.utils.data_utils import get_all_files, download_file
  from speechbrain.dataio.dataio import read_audio
label_desc: Use image node_id 2 for calling a global function with example usage: get_transcription(trans_list) and returns: trans_dict