code: def split_audio_channels(path, filename, channel, save_folder):
      """
      Split the stereo wav Media files from the dowloaded dataset.
      Keep only the speaker channel.
  
      Arguments:
      -------
      path: str
          Path of the original Media file without the extension ".wav" nor ".trs".
      filename: str
          Name of the Media recording.
      channel: str
          "R" or "L" following the channel of the speaker in the stereo wav file.
      save_folder: str
          Path where the csvs and preprocessed wavs will be stored.
      """
  
      channel_int = "1"
      if channel == "R":
          channel_int = "2"
      path = path.replace("1 ", "'1 ")
      path = path.replace("2 ", "'2 ")
      path = path.replace(" 2", " 2'")
      os.system(
          "sox "
          + path
          + " "
          + save_folder
          + "/wav/"
          + channel
          + filename
          + "_8khz.wav remix "
          + channel_int
      )
      os.system(
          "sox -G "
          + save_folder
          + "/wav/"
          + channel
          + filename
          + "_8khz.wav -r 16000 "
          + save_folder
          + "/wav/"
          + channel
          + filename
          + ".wav 2>/dev/null"
      )
      os.system(
          "rm "
          + save_folder
          + "/wav/"
          + channel
          + filename
          + "_8khz.wav"
      )
  
imports: import xml.dom.minidom
  from tqdm import tqdm
  import logging
  import subprocess
  import csv
  import os
  import glob
  import re
label_desc: Use image node_id 14 for calling a global function with example usage: split_audio_channels(path, filename, channel, save_folder) without return types