class_docstr: Helper class for writing whole videos.
class_docstr_tok: ["Helper","class","for","writing","whole","videos","."]
code: def __init__(self, fps, output_path=None, file_format="gif"):
      self.fps = fps
      self.output_path = output_path
      self.file_format = file_format
      self.proc = None
      self._out_chunks = []
      self._err_chunks = []
      self._out_thread = None
      self._err_thread = None
  
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 1 to create a new WholeVideoWriter object from inherited base classes: VideoWriter with example: obj = WholeVideoWriter(fps, output_path, file_format)