def env_maker(environment_id, seed, serial_id, monitor=False, allow_early_resets=False, normalize_observations=False,<EOL>normalize_returns=False, normalize_gamma=<NUM_LIT>):
env = gym.make(environment_id)<EOL>env.seed(seed + serial_id)<EOL>if monitor:<EOL><INDENT>logdir = logger.get_dir() and os.path.join(logger.get_dir(), str(serial_id))<EOL><DEDENT>else:<EOL><INDENT>logdir = None<EOL><DEDENT>env = Monitor(env, logdir, allow_early_resets=allow_early_resets)<EOL>if normalize_observations or normalize_returns:<EOL><INDENT>env = EnvNormalize(<EOL>env,<EOL>normalize_observations=normalize_observations,<EOL>normalize_returns=normalize_returns,<EOL>gamma=normalize_gamma<EOL>)<EOL><DEDENT>return env<EOL>
Create a relatively raw atari environment