code: def __init__(self, max_attempts: int):
      super().__init__(
          f"Reached the maximum number of attempts ({max_attempts}) "
          f"to reset an environment."
      )
  
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 TooManyResetAttemptsException object from inherited base classes: Exception with example: obj = TooManyResetAttemptsException(max_attempts)