def _make_env(): env = make_(id, **kwargs) if wrappers is not None: if callable(wrappers): env = wrappers(env) elif isinstance(wrappers, Iterable) and all([callable(w) for w in wrappers]): for wrapper in wrappers: env = wrapper(env) else: raise NotImplementedError return env
def _make_env(): return make_(id, **kwargs)