code: def convert_dataset(
      src, tgt, splits, json_files, lookup, process_audio, sample_rate
  ):
      """Converts the dataset from the original format to the SpeechBrain-friendly
      format
  
      Arguments
      ---------
      src: str
          the source path
  
      tgt: str
          the target path
  
      splits: dict
          a dictionary with split identifiers as keys
          and the file list for the split corresponding to the
          key as the value
      json_files: dict
          a dictionary containing the path where to store the data mafinest files
          for each split
      lookup: dict
          the digit look-up
  
      process_audio: callable
          the audio processing function
  
      sample_rate: int
          the target sample rate
      """
      if not os.path.exists(tgt):
          print(f"Creating directory {tgt}")
  
      meta_file_name = os.path.join(src, "data", "audioMNIST_meta.txt")
      meta = read_meta(file_name=meta_file_name)
  
      for split, file_list in splits.items():
          logger.info("Converting split %s", split)
          convert_split(
              src=src,
              tgt=tgt,
              split=split,
              file_list=file_list,
              meta=meta,
              metadata_file_path=json_files[split],
              lookup=lookup,
              process_audio=process_audio,
              sample_rate=sample_rate,
          )
  
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 19 for calling a global function with example usage: convert_dataset(src, tgt, splits, json_files, lookup, process_audio, sample_rate) without return types