code: def reset(self, **kwargs):
      attempt = 0
      while attempt < self.max_reset_attempts:
          try:
              return self.env.reset(**kwargs)
          except Exception:
              logger.error(traceback.format_exc())
              attempt += 1
      else:
          raise TooManyResetAttemptsException(self.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 2 for calling the ResetOnExceptionWrapper obj's underlying member method code with example usage: obj.reset() and returns: self