code: def compute_and_save_video_metrics(
      output_dirs, problem_name, video_length, frame_shape):
    
    statistics, all_results = compute_video_metrics_from_png_files(
        output_dirs, problem_name, video_length, frame_shape)
    for results, output_dir in zip(all_results, output_dirs):
      save_results(results, output_dir, problem_name)
  
    parent_dir = os.path.join(output_dirs[0], os.pardir)
    final_dir = os.path.join(parent_dir, "decode")
    tf.gfile.MakeDirs(parent_dir)
  
    save_results(statistics, final_dir, problem_name)
docs: Compute and saves the video metrics.