def env_maker(environment_id, seed, serial_id, monitor=False, allow_early_resets=False):
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>return env<EOL>
Create a classic control environment with basic set of wrappers