class_docstr: Base helper class for writing videos.
class_docstr_tok: ["Base","helper","class","for","writing","videos","."]
docstr: Writes multiple video frames.
code: def write_multi(self, frames, encoded_frames=None):
      """Writes multiple video frames."""
      if encoded_frames is None:
          # Infinite iterator.
          encoded_frames = iter(lambda: None, 1)
      for frame, encoded_frame in zip(frames, encoded_frames):
          self.write(frame, encoded_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 VideoWriter obj's underlying member method code with example usage: obj.write_multi(frames, encoded_frames) without return types