code: def __init__(self, env: gym.Env, max_reset_attempts: int = 5):
      super().__init__(env)
      self.max_reset_attempts = max_reset_attempts
  
file_path: ray/rllib/env/wrappers/exception_wrapper.py
imports: import logging
  import traceback
  import gymnasium
label_desc: Use image node_id 1 to create a new ResetOnExceptionWrapper object from inherited base classes: gym with example: obj = ResetOnExceptionWrapper(env, max_reset_attempts)