def wrap_deepmind_retro(env, scale=True, frame_stack=<NUM_LIT:4>):
env = WarpFrame(env)<EOL>env = ClipRewardEnv(env)<EOL>if frame_stack > <NUM_LIT:1>:<EOL><INDENT>env = FrameStack(env, frame_stack)<EOL><DEDENT>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