Remove dependency on os.path, and utilize tf.io.gfile instead.
Remove dependency on os.path, and utilize tf.io.gfile instead.

PiperOrigin-RevId: 312555169
Change-Id: I6d757f92a770d348ce3c9faf4e596a39f7fbb08d

tensorflow/agents,tensorflow/agents