class_docstr: Helper class for writing videos in batch.
class_docstr_tok: ["Helper","class","for","writing","videos","in","batch","."]
code: def write(self, batch_frame, batch_encoded_frame=None):
      del batch_encoded_frame
      if self.writers is None:
          self.writers = [
              WholeVideoWriter(  # pylint: disable=g-complex-comprehension
                  self.fps,
                  self.path_template.format(i),
                  self.file_format,
              )
              for i in range(len(batch_frame))
          ]
      for i, frame in enumerate(batch_frame):
          self.writers[i].write(frame)
  
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 2 for calling the BatchWholeVideoWriter obj's underlying member method code with example usage: obj.write(batch_frame, batch_encoded_frame) without return types