[tf.data] Throw an error when trying to use `tf.data.Dataset.__iter__()` in graph-mode outside of tf.function.
[tf.data] Throw an error when trying to use `tf.data.Dataset.__iter__()` in graph-mode outside of tf.function.

PiperOrigin-RevId: 249885104

ppwwyyxx/tensorflow,frreiss/tensorflow-fred,frreiss/tensorflow-fred,petewarden/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-Corporation/tensorflow,chemelnucfin/tensorflow,gunan/tensorflow,freedomtan/tensorflow,aam-at/tensorflow,ghchinoy/tensorflow,davidzchen/tensorflow,alsrgv/tensorflow,ghchinoy/tensorflow,chemelnucfin/tensorflow,davidzchen/tensorflow,jhseu/tensorflow,karllessard/tensorflow,adit-chandra/tensorflow,alsrgv/tensorflow,frreiss/tensorflow-fred,adit-chandra/tensorflow,davidzchen/tensorflow,xzturn/tensorflow,alsrgv/tensorflow,paolodedios/tensorflow,petewarden/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aam-at/tensorflow,Intel-Corporation/tensorflow,xzturn/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,freedomtan/tensorflow,paolodedios/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,chemelnucfin/tensorflow,annarev/tensorflow,annarev/tensorflow,adit-chandra/tensorflow,yongtang/tensorflow,sarvex/tensorflow,paolodedios/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,davidzchen/tensorflow,aldian/tensorflow,ppwwyyxx/tensorflow,freedomtan/tensorflow,ghchinoy/tensorflow,DavidNorman/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_saved_model,DavidNorman/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,arborh/tensorflow,chemelnucfin/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-tensorflow/tensorflow,gunan/tensorflow,frreiss/tensorflow-fred,gunan/tensorflow,aam-at/tensorflow,renyi533/tensorflow,chemelnucfin/tensorflow,DavidNorman/tensorflow,petewarden/tensorflow,jhseu/tensorflow,davidzchen/tensorflow,chemelnucfin/tensorflow,DavidNorman/tensorflow,karllessard/tensorflow,jhseu/tensorflow,chemelnucfin/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,tensorflow/tensorflow,arborh/tensorflow,freedomtan/tensorflow,yongtang/tensorflow,annarev/tensorflow,Intel-tensorflow/tensorflow,Intel-Corporation/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,davidzchen/tensorflow,aldian/tensorflow,xzturn/tensorflow,ppwwyyxx/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,alsrgv/tensorflow,sarvex/tensorflow,yongtang/tensorflow,tensorflow/tensorflow,ppwwyyxx/tensorflow,alsrgv/tensorflow,tensorflow/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ppwwyyxx/tensorflow,gunan/tensorflow,Intel-Corporation/tensorflow,renyi533/tensorflow,xzturn/tensorflow,frreiss/tensorflow-fred,ppwwyyxx/tensorflow,arborh/tensorflow,renyi533/tensorflow,xzturn/tensorflow,sarvex/tensorflow,paolodedios/tensorflow,Intel-tensorflow/tensorflow,adit-chandra/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow,xzturn/tensorflow,arborh/tensorflow,ppwwyyxx/tensorflow,karllessard/tensorflow,tensorflow/tensorflow,ghchinoy/tensorflow,sarvex/tensorflow,xzturn/tensorflow,tensorflow/tensorflow,renyi533/tensorflow,aam-at/tensorflow,freedomtan/tensorflow,cxxgtxy/tensorflow,aldian/tensorflow,renyi533/tensorflow,renyi533/tensorflow,aam-at/tensorflow,adit-chandra/tensorflow,adit-chandra/tensorflow,gunan/tensorflow,jhseu/tensorflow,arborh/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,yongtang/tensorflow,chemelnucfin/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow,renyi533/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,cxxgtxy/tensorflow,aam-at/tensorflow,petewarden/tensorflow,frreiss/tensorflow-fred,annarev/tensorflow,sarvex/tensorflow,cxxgtxy/tensorflow,karllessard/tensorflow,DavidNorman/tensorflow,ppwwyyxx/tensorflow,jhseu/tensorflow,karllessard/tensorflow,paolodedios/tensorflow,arborh/tensorflow,arborh/tensorflow,arborh/tensorflow,gautam1858/tensorflow,paolodedios/tensorflow,arborh/tensorflow,annarev/tensorflow,jhseu/tensorflow,cxxgtxy/tensorflow,arborh/tensorflow,gautam1858/tensorflow,jhseu/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,alsrgv/tensorflow,adit-chandra/tensorflow,jhseu/tensorflow,frreiss/tensorflow-fred,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aam-at/tensorflow,aam-at/tensorflow,gunan/tensorflow,tensorflow/tensorflow,adit-chandra/tensorflow,chemelnucfin/tensorflow,gunan/tensorflow,aldian/tensorflow,ghchinoy/tensorflow,aam-at/tensorflow,DavidNorman/tensorflow,gautam1858/tensorflow,alsrgv/tensorflow,chemelnucfin/tensorflow,freedomtan/tensorflow,chemelnucfin/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,annarev/tensorflow,frreiss/tensorflow-fred,davidzchen/tensorflow,Intel-Corporation/tensorflow,Intel-Corporation/tensorflow,DavidNorman/tensorflow,renyi533/tensorflow,karllessard/tensorflow,ghchinoy/tensorflow,freedomtan/tensorflow,freedomtan/tensorflow,paolodedios/tensorflow,aldian/tensorflow,gunan/tensorflow,sarvex/tensorflow,aldian/tensorflow,freedomtan/tensorflow,adit-chandra/tensorflow,petewarden/tensorflow,cxxgtxy/tensorflow,annarev/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,cxxgtxy/tensorflow,petewarden/tensorflow,gautam1858/tensorflow,paolodedios/tensorflow,jhseu/tensorflow,frreiss/tensorflow-fred,renyi533/tensorflow,xzturn/tensorflow,ppwwyyxx/tensorflow,karllessard/tensorflow,DavidNorman/tensorflow,petewarden/tensorflow,paolodedios/tensorflow,renyi533/tensorflow,adit-chandra/tensorflow,jhseu/tensorflow,annarev/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,alsrgv/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aldian/tensorflow,Intel-tensorflow/tensorflow,alsrgv/tensorflow,gunan/tensorflow,yongtang/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_saved_model,aam-at/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,xzturn/tensorflow,aam-at/tensorflow,alsrgv/tensorflow,ppwwyyxx/tensorflow,ppwwyyxx/tensorflow,Intel-tensorflow/tensorflow,gautam1858/tensorflow,frreiss/tensorflow-fred,paolodedios/tensorflow,cxxgtxy/tensorflow,yongtang/tensorflow,karllessard/tensorflow,karllessard/tensorflow,xzturn/tensorflow,davidzchen/tensorflow,Intel-tensorflow/tensorflow,alsrgv/tensorflow,ghchinoy/tensorflow,sarvex/tensorflow,petewarden/tensorflow,Intel-tensorflow/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow,renyi533/tensorflow,gautam1858/tensorflow,xzturn/tensorflow,adit-chandra/tensorflow,DavidNorman/tensorflow,adit-chandra/tensorflow,arborh/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,annarev/tensorflow,petewarden/tensorflow,jhseu/tensorflow,gautam1858/tensorflow,annarev/tensorflow,freedomtan/tensorflow,gunan/tensorflow,ghchinoy/tensorflow,renyi533/tensorflow,freedomtan/tensorflow,davidzchen/tensorflow,freedomtan/tensorflow,aam-at/tensorflow,petewarden/tensorflow,aldian/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jhseu/tensorflow,ghchinoy/tensorflow,annarev/tensorflow,DavidNorman/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ghchinoy/tensorflow,alsrgv/tensorflow,yongtang/tensorflow,davidzchen/tensorflow,ppwwyyxx/tensorflow,sarvex/tensorflow,ghchinoy/tensorflow,yongtang/tensorflow,arborh/tensorflow,gunan/tensorflow