code: def make_one_shot_iterator(dataset):
      """Returns a dataset's one-shot iterator."""
  
      try:
          return v1.data.make_one_shot_iterator(dataset)
      except AttributeError:
          return dataset.make_one_shot_iterator()
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from distutils.version import LooseVersion
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow.python import tf2
  from tensorflow.python.keras.metrics import Metric
  from tensorflow.python.tpu import tpu_function
  from tensorflow_estimator.python.estimator.head import regression_head
label_desc: Use image node_id 3 for calling a global function with example usage: make_one_shot_iterator(dataset) and returns: v1, dataset