def wrap_deepmind_retro(env, scale=True, frame_stack=<NUM_LIT:4>):
env = WarpFrame(env)<EOL>env = ClipRewardEnv(env)<EOL>env = FrameStack(env, frame_stack)<EOL>if scale:<EOL><INDENT>env = ScaledFloatFrame(env)<EOL><DEDENT>return env<EOL>
Configure environment for retro games, using config similar to DeepMind-style Atari in wrap_deepmind