code: def process_files(wav_files, process_audio, sample_rate):
      """Applies post-processing to a data split
  
      Arguments
      ---------
      wav_files: list
          a list of (src_file_name, tgt_file_name) tuples
  
      sample_rate: int
          the sample rate
  
      Returns
      -------
      results: generator
          a generator of (file_name, extra metadata) tuples
  
      """
      folders = set(
          os.path.dirname(tgt_file_name)
          for _, tgt_file_name in wav_files
      )
      for folder in folders:
          if not os.path.exists(folder):
              os.makedirs(folder)
      for src_file_name, tgt_file_name in tqdm(wav_files):
          result = process_file(
              src_file_name, tgt_file_name, process_audio, sample_rate
          )
          yield tgt_file_name, result
  
imports: import logging
  import csv
  import math
  import json
  import os
  import torchaudio
  import speechbrain
  from glob import glob
  from functools import partial
  from tqdm.auto import tqdm
  from torchaudio import functional
  from subprocess import list2cmdline
  from speechbrain.utils.superpowers import run_shell
  from speechbrain.utils.data_utils import download_file
  from speechbrain.dataio.dataio import load_pkl, save_pkl
label_desc: Use image node_id 14 for calling a global function with example usage: process_files(wav_files, process_audio, sample_rate) without return types