code: def _counter(start, step, dtype, name=None):
      with ops.name_scope("counter"):
          start = ops.convert_to_tensor(
              start, dtype=dtype, name="start"
          )
          step = ops.convert_to_tensor(step, dtype=dtype, name="step")
          return (
              dataset_ops.Dataset.from_tensors(0, name=name)
              .repeat(None)
              .scan(start, lambda state, _: (state + step, state))
          )
  
label_desc: Use image node_id 1 for calling a global function with example usage: _counter(start, step, dtype, name) and returns: dataset_ops