code: def _write_csv(extracted_dir, txt_dir, target_dir):
      print(f"Writing CSV file")
      dset_abs_path = extracted_dir
      dset_txt_abs_path = txt_dir
  
      audios = make_manifest(dset_abs_path)
      utterences = load_txts(dset_txt_abs_path)
  
      csv = []
  
      for file in audios:
          st = os.stat(file)
          file_size = st.st_size
  
          # Seems to be one wav directory missing from txts - skip it
          file_parts = file.split(os.sep)
          file_subdir = file_parts[-2]
          if file_subdir == "p315":
              continue
  
          file_name = file_parts[-1]
          file_name_no_ext = file_name.split(".")[0]
  
          utterence = utterences[file_name_no_ext]
          utterence_clean = (
              re.sub(r"[^a-zA-Z' ]+", "", utterence).lower().strip()
          )
  
          csv_line = f"{file},{file_size},{utterence_clean}\n"
          csv.append(csv_line)
  
      random.seed(1454)
      random.shuffle(csv)
  
      train_data = csv[:37000]
      dev_data = csv[37000:40200]
      test_data = csv[40200:]
  
      with open(os.path.join(target_dir, "vctk_full.csv"), "w") as fd:
          fd.write("wav_filename,wav_filesize,transcript\n")
          for i in csv:
              fd.write(i)
      with open(os.path.join(target_dir, "vctk_train.csv"), "w") as fd:
          fd.write("wav_filename,wav_filesize,transcript\n")
          for i in train_data:
              fd.write(i)
      with open(os.path.join(target_dir, "vctk_dev.csv"), "w") as fd:
          fd.write("wav_filename,wav_filesize,transcript\n")
          for i in dev_data:
              fd.write(i)
      with open(os.path.join(target_dir, "vctk_test.csv"), "w") as fd:
          fd.write("wav_filename,wav_filesize,transcript\n")
          for i in test_data:
              fd.write(i)
  
      print(f"Wrote {len(csv)} entries")
  
file_path: DeepSpeech/bin/import_vctk.py
imports: import os
  import random
  import re
  from multiprocessing import Pool
  from zipfile import ZipFile
  import librosa
  import progressbar
  from deepspeech_training.util.downloader import SIMPLE_BAR, maybe_download
  from deepspeech_training.util.importers import get_counter, get_imported_samples, print_import_report
label_desc: Use image node_id 6 for calling a global function with example usage: _write_csv(extracted_dir, txt_dir, target_dir) without return types