title: How to use `tf.data.Dataset` in Tensorflow V2 with graphs?
body: <p>I spot that functions, such as <code>make_one_shot_iterator</code>, have been deprecated in Tensorflow V2, and the suggestion is to use <code>for ... in dataset</code>, which requires eager execution enabled. I'm confused that without
  these functions, how can we extract data from <code>Dataset</code> with graphs? It seems to me now that the only choice is to turn to <code>tf.compat.v1.data.make_one_shot_iterator(dataset)</code>. Are there any suggested choice in V2? Why would these functions be removed?</p>