code: def _build_input_pipeline(self, name, num_outputs):
      with ops.name_scope(name):
          ds = (
              dataset_ops.Dataset.range(num_outputs)
              .shuffle(10, reshuffle_each_iteration=False)
              .prefetch(10)
          )
          iterator = ds.make_initializable_iterator()
          saveable = contrib_iterator_ops.make_saveable_from_iterator(
              iterator
          )
          ops.add_to_collection(
              ops.GraphKeys.SAVEABLE_OBJECTS, saveable
          )
          return iterator.initializer, iterator.get_next()
  
file_path: tensorflow-upstream/tensorflow/python/data/experimental/kernel_tests/make_saveable_from_iterator_test.py
imports: import os
  from absl.testing import parameterized
  from tensorflow.python.data.experimental.ops import iterator_ops
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.platform import test
  from tensorflow.python.training import saver
label_desc: Use image node_id 1 for calling the MakeSaveableFromIteratorTest obj's underlying member method code with example usage: obj._build_input_pipeline(name, num_outputs) and returns: iterator,  iterator