class_docstr: Force even dimentions of both height and width by adding zeros.
class_docstr_tok: ["Force","even","dimentions","of","both","height","and","width","by","adding","zeros","."]
code: def __init__(self, env):
      gym.ObservationWrapper.__init__(self, env)
  
      orig_shape = env.observation_space.shape
      extended_shape = list(orig_shape)
      for axis in self.HW_AXES:
          if self.if_odd(orig_shape[axis]):
              extended_shape[axis] += 1
  
      assert env.observation_space.dtype == np.uint8
      self.observation_space = gym.spaces.Box(
          low=0, high=255, shape=extended_shape, dtype=np.uint8
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import copy
  import os
  import re
  import gym
  import numpy
  import six
  from tensor2tensor.models.research.rl import get_policy
  from tensor2tensor.models.research.rl import make_simulated_env_fn_from_hparams
  from tensor2tensor.rl import rl_utils
  from tensor2tensor.rl.envs.simulated_batch_gym_env import FlatBatchEnv
  from tensor2tensor.utils import hparam
  from tensor2tensor.utils import trainer_lib
  from tensor2tensor.utils.misc_utils import camelcase_to_snakecase
  import tensorflow.compat.v1
label_desc: Use image node_id 1 to create a new ExtendToEvenDimentions object from inherited base classes: gym with example: obj = ExtendToEvenDimentions(env)