Remove duplicate code in tests
Remove duplicate code in tests

PiperOrigin-RevId: 293635946
Change-Id: I721559186c3db4b3f3dabd1992316b2ea3a25ed8

davidzchen/tensorflow,karllessard/tensorflow,gunan/tensorflow,tensorflow/tensorflow,Intel-Corporation/tensorflow,yongtang/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,sarvex/tensorflow,petewarden/tensorflow,gunan/tensorflow,aldian/tensorflow,cxxgtxy/tensorflow,xzturn/tensorflow,sarvex/tensorflow,annarev/tensorflow,gunan/tensorflow,Intel-tensorflow/tensorflow,renyi533/tensorflow,frreiss/tensorflow-fred,gunan/tensorflow,aam-at/tensorflow,jhseu/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aldian/tensorflow,petewarden/tensorflow,Intel-tensorflow/tensorflow,karllessard/tensorflow,cxxgtxy/tensorflow,aam-at/tensorflow,yongtang/tensorflow,renyi533/tensorflow,annarev/tensorflow,gautam1858/tensorflow,davidzchen/tensorflow,Intel-Corporation/tensorflow,paolodedios/tensorflow,Intel-tensorflow/tensorflow,yongtang/tensorflow,tensorflow/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,aldian/tensorflow,frreiss/tensorflow-fred,gautam1858/tensorflow,Intel-Corporation/tensorflow,frreiss/tensorflow-fred,davidzchen/tensorflow,cxxgtxy/tensorflow,paolodedios/tensorflow,karllessard/tensorflow,aam-at/tensorflow,frreiss/tensorflow-fred,paolodedios/tensorflow,jhseu/tensorflow,Intel-Corporation/tensorflow,sarvex/tensorflow,karllessard/tensorflow,petewarden/tensorflow,gunan/tensorflow,petewarden/tensorflow,aam-at/tensorflow,Intel-tensorflow/tensorflow,paolodedios/tensorflow,yongtang/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow,xzturn/tensorflow,aam-at/tensorflow,cxxgtxy/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_saved_model,aldian/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jhseu/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aldian/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,karllessard/tensorflow,gunan/tensorflow,tensorflow/tensorflow,gautam1858/tensorflow,renyi533/tensorflow,renyi533/tensorflow,xzturn/tensorflow,Intel-Corporation/tensorflow,paolodedios/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,frreiss/tensorflow-fred,aldian/tensorflow,renyi533/tensorflow,cxxgtxy/tensorflow,xzturn/tensorflow,gunan/tensorflow,tensorflow/tensorflow,davidzchen/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,tensorflow/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,Intel-Corporation/tensorflow,paolodedios/tensorflow,xzturn/tensorflow,annarev/tensorflow,gunan/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,gunan/tensorflow,aam-at/tensorflow,gunan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-experimental_link_static_libraries_once,petewarden/tensorflow,paolodedios/tensorflow,aldian/tensorflow,cxxgtxy/tensorflow,karllessard/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_saved_model,frreiss/tensorflow-fred,gautam1858/tensorflow,annarev/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,gautam1858/tensorflow,aldian/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,karllessard/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jhseu/tensorflow,yongtang/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gautam1858/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,petewarden/tensorflow,sarvex/tensorflow,petewarden/tensorflow,yongtang/tensorflow,tensorflow/tensorflow,renyi533/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_saved_model,frreiss/tensorflow-fred,tensorflow/tensorflow,aam-at/tensorflow,renyi533/tensorflow,aam-at/tensorflow,renyi533/tensorflow,renyi533/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,freedomtan/tensorflow,xzturn/tensorflow,freedomtan/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,aam-at/tensorflow,annarev/tensorflow,jhseu/tensorflow,freedomtan/tensorflow,jhseu/tensorflow,frreiss/tensorflow-fred,aam-at/tensorflow,frreiss/tensorflow-fred,jhseu/tensorflow,jhseu/tensorflow,cxxgtxy/tensorflow,jhseu/tensorflow,paolodedios/tensorflow,freedomtan/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gautam1858/tensorflow,frreiss/tensorflow-fred,davidzchen/tensorflow,gunan/tensorflow,freedomtan/tensorflow,petewarden/tensorflow,freedomtan/tensorflow,annarev/tensorflow,xzturn/tensorflow,yongtang/tensorflow,freedomtan/tensorflow,paolodedios/tensorflow,Intel-Corporation/tensorflow,xzturn/tensorflow,annarev/tensorflow,sarvex/tensorflow,Intel-tensorflow/tensorflow,yongtang/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow,annarev/tensorflow,gautam1858/tensorflow,sarvex/tensorflow,petewarden/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jhseu/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,petewarden/tensorflow,frreiss/tensorflow-fred,gautam1858/tensorflow,renyi533/tensorflow,paolodedios/tensorflow,jhseu/tensorflow,freedomtan/tensorflow,annarev/tensorflow,davidzchen/tensorflow,sarvex/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,petewarden/tensorflow,yongtang/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_saved_model,renyi533/tensorflow,karllessard/tensorflow,jhseu/tensorflow,gautam1858/tensorflow,renyi533/tensorflow,xzturn/tensorflow,gunan/tensorflow,annarev/tensorflow,Intel-tensorflow/tensorflow,freedomtan/tensorflow,aam-at/tensorflow,xzturn/tensorflow,cxxgtxy/tensorflow