class_docstr: Benchmarks for `tf.data.Dataset.range()`.
code: def _benchmark_range(self, num_elements, autotune, benchmark_id):
      options = options_lib.Options()
      options.autotune.enabled = autotune
      dataset = dataset_ops.Dataset.range(num_elements)
      dataset = dataset.with_options(options)
  
      self.run_and_report_benchmark(
          dataset,
          num_elements=num_elements,
          extras={
              "model_name": "range.benchmark.%d" % benchmark_id,
              "parameters": "%d.%s" % (num_elements, autotune),
          },
          name="modeling_%s" % ("on" if autotune else "off"),
      )
  
file_path: tensorflow-upstream/tensorflow/python/data/benchmarks/range_benchmark.py
imports: from tensorflow.python.data.benchmarks import benchmark_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops import options
label_desc: Use image node_id 1 for calling the RangeBenchmark obj's underlying member method code with example usage: obj._benchmark_range(num_elements, autotune, benchmark_id) without return types