[tf.data] Check if node_ is present before returning num_elemets for iterator.
[tf.data] Check if node_ is present before returning num_elemets for iterator.

PiperOrigin-RevId: 240230437

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