class_docstr: Helper class for writing whole videos.
class_docstr_tok: ["Helper","class","for","writing","whole","videos","."]
code: def write(self, frame, encoded_frame=None):
      if self.proc is None:
          self.__init_ffmpeg(frame.shape)
      self.proc.stdin.write(frame.tostring())
  
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 4 for calling the WholeVideoWriter obj's underlying member method code with example usage: obj.write(frame, encoded_frame) without return types