Move tfrt_enabled target duplication logic to tf_py_test
Move tfrt_enabled target duplication logic to tf_py_test

The tfrt_enabled target duplication logic was initially added to cuda_py_test,
but there are tests that directly use tf_py_test, so add to tf_py_test instead.

PiperOrigin-RevId: 307719942
Change-Id: I90bb1009c5cadf1a5a0a3d036a3a174d31b84eac

gunan/tensorflow,gunan/tensorflow,gunan/tensorflow,gunan/tensorflow,gunan/tensorflow,gunan/tensorflow,gunan/tensorflow,gunan/tensorflow,gunan/tensorflow,gunan/tensorflow,gunan/tensorflow,gunan/tensorflow