code: def main():
      data_root = os.path.abspath(args.data_root)
  
      # Convert from .sph to .wav
      logging.info("Converting audio files to .wav...")
      sph_list = glob.glob(
          os.path.join(data_root, "an4/**/*.sph"), recursive=True
      )
      for sph_path in sph_list:
          wav_path = sph_path[:-4] + ".wav"
          cmd = ["sox", sph_path, wav_path]
          subprocess.run(cmd)
      logging.info("Finished conversion.")
  
      # Build manifests
      logging.info("Building training manifest...")
      train_transcripts = os.path.join(
          data_root, "an4/etc/an4_train.transcription"
      )
      train_manifest = os.path.join(
          data_root, "an4/train_manifest.json"
      )
      train_wavs = os.path.join(data_root, "an4/wav/an4_clstk")
      build_manifest(
          data_root, train_transcripts, train_manifest, train_wavs
      )
      logging.info("Training manifests created.")
  
      logging.info("Building test manifest...")
      test_transcripts = os.path.join(
          data_root, "an4/etc/an4_test.transcription"
      )
      test_manifest = os.path.join(data_root, "an4/test_manifest.json")
      test_wavs = os.path.join(data_root, "an4/wav/an4test_clstk")
      build_manifest(
          data_root, test_transcripts, test_manifest, test_wavs
      )
      logging.info("Test manifest created.")
  
      logging.info("Done with AN4 processing!")
  
file_path: NeMo/scripts/dataset_processing/process_an4_data.py
imports: import argparse
  import glob
  import json
  import logging
  import os
  import subprocess
  import librosa
label_desc: Use image node_id 2 for calling a global function with example usage: main() without return types