code: def main():
      data_root = args.data_root
      dest_root = args.dest_root
  
      min_slice_duration = args.min_slice_duration
  
      if not os.path.exists(os.path.join(dest_root, "full_audio_wav")):
          os.makedirs(os.path.join(dest_root, "full_audio_wav"))
      if not os.path.exists(os.path.join(dest_root, "audio")):
          os.makedirs(os.path.join(dest_root, "audio"))
  
      # Create/wipe manifest contents
      open(os.path.join(dest_root, "manifest_hub5.json"), "w").close()
  
      # Convert full audio files from .sph to .wav
      create_wavs(data_root, dest_root)
  
      # Get each audio transcript from transcript file
      info_list, chars = process_transcripts(data_root)
  
      print("Writing out vocab file", file=sys.stderr)
      with open(os.path.join(dest_root, "vocab.txt"), "w") as fh:
          for x in sorted(list(chars)):
              fh.write(x + "\n")
  
      # Segment the audio data
      print("Segmenting audio and writing manifest")
      segment_audio(info_list, dest_root, min_slice_duration)
  
imports: import argparse
  import glob
  import json
  import os
  import re
  import subprocess
  import sys
  from collections import namedtuple
  from math import ceil, floor
  from operator import attrgetter
  import numpy
  import scipy.io.wavfile
  from tqdm import tqdm
label_desc: Use image node_id 7 for calling a global function with example usage: main() without return types