code: def check_args(args):
      utt_embed_path = args.utt_embed_path
      spk_embed_path = args.spk_embed_path
      utt2spk = args.utt2spk
  
      if not os.path.exists(utt_embed_path):
          sys.stderr.write(
              f"Error: provided --utt-embed-path ({utt_embed_path}) does not exist. "
          )
          sys.stderr.write("Exiting...\n")
          sys.stderr.flush()
          exit(1)
  
      if not os.path.exists(spk_embed_path):
          sys.stderr.write(
              f"Error: provided --spk-embed-path ({spk_embed_path}) does not exist. "
          )
          sys.stderr.write("Exiting...\n")
          sys.stderr.flush()
          exit(1)
  
      if utt2spk and (not os.path.exists(utt2spk)):
          sys.stderr.write(
              f"Error: provided --utt2spk file ({utt2spk}) does not exist. "
          )
          sys.stderr.write("Exiting...\n")
          sys.stderr.flush()
          exit(1)
  
imports: import argparse
  import os
  import shutil
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: check_args(args) without return types