code: def reset(self, **kwargs):
      obs, info = self.env.reset(**kwargs)
  
      if self._total_steps is None:
          self._total_steps = sum(self._episode_lengths)
  
      if self._current_reward is not None:
          self._episode_rewards.append(self._current_reward)
          self._episode_lengths.append(self._num_steps)
          self._num_episodes += 1
  
      self._current_reward = 0
      self._num_steps = 0
  
      return obs, info
  
imports: from collections import deque
  import gymnasium
  from gymnasium import spaces
  import numpy
  from typing import Union
  from ray.rllib.utils.annotations import PublicAPI
  from ray.rllib.utils.images import rgb2gray, resize
label_desc: Use image node_id 2 for calling the MonitorEnv obj's underlying member method code with example usage: obj.reset() and returns: obs,  info