import aicrowd_gym import nle from gym.wrappers import TimeLimit def create_env(): """This is the environment that will be assessed by AIcrowd.""" return aicrowd_gym.make("NetHackChallenge-v0") def addtimelimitwrapper_fn(): """ An example of how to add wrappers to the nethack_make_fn Should return a gym env which wraps the nethack gym env """ env = create_env() env = TimeLimit(env, max_episode_steps=10_000_000) return env