code: def _build_counter_dataset(
      self, start, step, num_outputs, options=None
  ):
      counter_dataset = dataset_ops.Dataset.counter(start, step)
      range_dataset = dataset_ops.Dataset.range(num_outputs)
      dataset = dataset_ops.Dataset.zip(
          (counter_dataset, range_dataset)
      )
      if options:
          dataset = dataset.with_options(options)
      return dataset
  
file_path: tensorflow/tensorflow/python/data/kernel_tests/counter_test.py
imports: from absl.testing import parameterized
  from tensorflow.python.data.kernel_tests import checkpoint_test_base
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops import options
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import dtypes
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the CounterCheckpointTest obj's underlying member method code with example usage: obj._build_counter_dataset(start, step, num_outputs, options) and returns: dataset