class_docstr: VideoCaptureIODataset
docstr: VideoCaptureIODataset
code: def __init__(self, device, internal=True):
      """VideoCaptureIODataset"""
      with tf.name_scope("VideoCaptureIODataset"):
          assert internal
  
          resource = core_ops.io_video_capture_readable_init(device)
  
          self._resource = resource
  
          dataset = tf.data.experimental.Counter()
          dataset = dataset.map(
              lambda i: core_ops.io_video_capture_readable_read(
                  self._resource, i
              )
          )
          dataset = dataset.apply(
              tf.data.experimental.take_while(
                  lambda v: tf.greater(tf.shape(v)[0], 0)
              )
          )
          dataset = dataset.unbatch()
  
          self._dataset = dataset
          super().__init__(self._dataset._variant_tensor)
  
file_path: io/tensorflow_io/python/experimental/video_dataset_ops.py
imports: import tensorflow
  from tensorflow_io.python.ops import core_ops
label_desc: Use image node_id 1 to create a new VideoCaptureIODataset object from inherited base classes: tf.data with example: obj = VideoCaptureIODataset(device, internal)