code: def test_generating_and_loading_preserves_rollouts(self):
      env_name = TEST_ENV_NAME
      from_env = gym_env.T2TGymEnv(env_name, batch_size=1)
      from_env.start_new_epoch(0, self.out_dir)
      self.play(from_env, n_steps=20)
      from_env.generate_data(self.out_dir)
  
      to_env = gym_env.T2TGymEnv(env_name, batch_size=1)
      to_env.start_new_epoch(0, self.out_dir)
  
      self.assertEqual(
          from_env.current_epoch_rollouts(),
          to_env.current_epoch_rollouts(),
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import shutil
  import gym
  from gym.spaces import Box
  from gym.spaces import Discrete
  import numpy
  from tensor2tensor.data_generators import gym_env
  from tensor2tensor.data_generators import problem
  from tensor2tensor.rl.gym_utils import make_gym_env
  import tensorflow.compat.v1
label_desc: Use image node_id 15 for calling the GymEnvTest obj's underlying member method code with example usage: obj.test_generating_and_loading_preserves_rollouts() without return types