code: def compute_and_save_video_metrics(
      output_dirs, problem_name, video_length, frame_shape
  ):
      """Compute and saves the video metrics."""
      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)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import numpy
  import six
  import tensorflow.compat.v1
label_desc: Use image node_id 15 for calling a global function with example usage: compute_and_save_video_metrics(output_dirs, problem_name, video_length, frame_shape) without return types