def make_gym_env(env_id, num_env=<NUM_LIT:2>, seed=<NUM_LIT>, wrapper_kwargs=None, start_index=<NUM_LIT:0>):
if wrapper_kwargs is None:<EOL><INDENT>wrapper_kwargs = {}<EOL><DEDENT>def make_env(rank): <EOL><INDENT>def _thunk():<EOL><INDENT>env = gym.make(env_id)<EOL>env.seed(seed + rank)<EOL>return env<EOL><DEDENT>return _thunk<EOL><DEDENT>set_global_seeds(seed)<EOL>return SubprocVecEnv([make_env(i + start_index) for i in range(num_env)])<EOL>
Create a wrapped, SubprocVecEnv for Gym Environments.