code: def process_line(wav, filename2transcript):
      """This function processes a line of the csv file.
  
      This function is being used in the context of multi-processing.
  
      Arguments
      ---------
      wav: str
          path to the wav file.
      filename2transcript: dict
          dictionary mapping filenames to transcripts.
  
      Returns
      -------
      list
          list containing the duration, the path to the wav file and the transcript.
      """
      filename = wav.split("/")[-1].split(".wav")[0]
  
      info = read_audio_info(wav)
      duration = info.num_frames / info.sample_rate
  
      transcript_ = filename2transcript[filename]
  
      return [str(duration), wav, transcript_]
  
file_path: speechbrain/recipes/AISHELL-1/ASR/CTC/aishell_prepare.py
imports: import os
  import shutil
  import logging
  import glob
  import csv
  from speechbrain.dataio.dataio import read_audio_info
  from speechbrain.utils.parallel import parallel_map
  import functools
label_desc: Use image node_id 2 for calling a global function with example usage: process_line(wav, filename2transcript) and returns: list