class_docstr: A `Dataset` that rebatches elements from its input into new batch sizes.
  
  `_RebatchDataset(input_dataset, batch_sizes)` is functionally equivalent to
  `input_dataset.unbatch().batch(N)`, where the value of N cycles through the
  `batch_sizes` input list. The elements produced by this dataset have the same
  rank as the elements of the input dataset.
class_docstr_tok: ["A","`","Dataset","`","that","rebatches","elements","from","its","input","into","new","batch","sizes",".","`","_RebatchDataset","(","input_dataset",",","batch_sizes",")","`","is","functionally","equivalent","to","`","input_dataset.unbatch","(",")",".batch","(","N",")","`",",","where","the","value","of","N","cycles","through","the","`","batch_sizes","`","input","list",".","The","elements","produced","by","this","dataset","have","the","same","rank","as","the","elements","of","the","input","dataset","."]
code: def element_spec(self):
      return self._element_spec
  
file_path: tensorflow-upstream/tensorflow/python/data/ops/rebatch_op.py
imports: import numpy
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.util import nest
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import gen_experimental_dataset_ops
label_desc: Use image node_id 4 for calling the _RebatchDataset obj's underlying member method code with example usage: obj.element_spec() and returns: self