code: def test_resize(self):
      env_name = TEST_ENV_NAME
      orig_env = make_gym_env(env_name)
      resize_height_factor = 2
      resize_width_factor = 3
      orig_height, orig_width = orig_env.observation_space.shape[:2]
      env, obs, _, _ = self.init_batch_and_play(
          env_name,
          steps_per_epoch=1,
          resize_height_factor=resize_height_factor,
          resize_width_factor=resize_width_factor,
      )
      for obs_batch in obs:
          ob = obs_batch[0]
          self.assertEqual(ob.shape, env.observation_space.shape)
          height, width = ob.shape[:2]
          self.assertEqual(height, orig_height // resize_height_factor)
          self.assertEqual(width, orig_width // resize_width_factor)
  
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 11 for calling the GymEnvTest obj's underlying member method code with example usage: obj.test_resize() without return types