code: def get_duration_measures(source_file_path,
                            output_path=None,
                            phonemic=False,
                            semantic=False,
                            quiet=False,
                            similarity_file = None,
                            threshold = None):
      args = Args()
      args.output_path = output_path
      args.phonemic = phonemic
      args.semantic = semantic
      args.source_file_path = source_file_path
      args.quiet = quiet
      args.similarity_file = similarity_file
      args.threshold = threshold
      args = validate_arguments(args)
      if args.phonemic:
          response_category = args.phonemic
          output_prefix = os.path.basename(args.source_file_path).split('.')[0] + "_vfclust_phonemic_" + args.phonemic
      elif args.semantic:
          response_category = args.semantic
          output_prefix = os.path.basename(args.source_file_path).split('.')[0] + "_vfclust_semantic_" + args.semantic
      else:
          response_category = ""
          output_prefix = ""
      if args.output_path:
          target_file_path = os.path.join(args.output_path, output_prefix + '.csv')
      else:
          target_file_path = False
      engine = VFClustEngine(response_category=response_category,
                        response_file_path=args.source_file_path,
                        target_file_path=target_file_path,
                        quiet = args.quiet,
                        similarity_file = args.similarity_file,
                        threshold = args.threshold
      )
      return dict(engine.measures)