def _make_env(self, env_fn, nenv):

    def make_env(rank):

        def _env():
            return env_fn(rank)
        return _env
    return SubprocVecEnv([make_env(i) for i in range(nenv)])
def _make_env(self, env_fn, nenv):

    def make_env(rank):

        def _env():
            return env_fn(rank)
        return _env
    return SubprocVecEnv([make_env(i) for i in range(nenv)])