class_docstr: Helper class for writing whole videos.
class_docstr_tok: ["Helper","class","for","writing","whole","videos","."]
code: def save_to_disk(self, output):
      if self.output_path is None:
          raise ValueError(
              "This writer doesn't support saving to disk (output_path not "
              "specified)."
          )
      with tf.gfile.Open(self.output_path, "w") as f:
          f.write(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 6 for calling the WholeVideoWriter obj's underlying member method code with example usage: obj.save_to_disk(output) without return types