class_docstr: Base helper class for writing videos.
class_docstr_tok: ["Base","helper","class","for","writing","videos","."]
docstr: Finishes writing frames and saves output to disk, if any.
code: def finish_to_disk(self):
      """Finishes writing frames and saves output to disk, if any."""
      output = (
          self.finish()
      )  # pylint: disable=assignment-from-no-return
      if output is not None:
          self.save_to_disk(output)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  from tensor2tensor.layers import common_layers
  from tensor2tensor.utils import contrib
  import tensorflow.compat.v1
  from tensorflow.python.ops import summary_op_util
label_desc: Use image node_id 5 for calling the VideoWriter obj's underlying member method code with example usage: obj.finish_to_disk() without return types