def reset(self, **kwargs):
self.env.reset(**kwargs)<EOL>if self.override_num_noops is not None:<EOL><INDENT>noops = self.override_num_noops<EOL><DEDENT>else:<EOL><INDENT>noops = self.unwrapped.np_random.randint(<NUM_LIT:1>, self.noop_max + <NUM_LIT:1>) <EOL><DEDENT>assert noops > <NUM_LIT:0><EOL>obs = None<EOL>for _ in range(noops):<EOL><INDENT>obs, _, done, _ = self.env.step(self.noop_action)<EOL>if done:<EOL><INDENT>obs = self.env.reset(**kwargs)<EOL><DEDENT><DEDENT>return obs<EOL>
Do no-op action for a number of steps in [1, noop_max].