def __init__(self, env, ratio):
gym.ObservationWrapper.__init__(self, env)<EOL>(oldh, oldw, oldc) = env.observation_space.shape<EOL>newshape = (oldh//ratio, oldw//ratio, oldc)<EOL>self.observation_space = spaces.Box(<EOL>low=<NUM_LIT:0>, high=<NUM_LIT:255>,<EOL>shape=newshape, dtype=np.uint8<EOL>)<EOL>
Downsample images by a factor of ratio