class_docstr: `StatsRecorder` with PFRL's `ContinuingTimeLimit` support.
  
  For details, see
  https://github.com/openai/gym/blob/master/gym/wrappers/monitoring/stats_recorder.py
class_docstr_tok: ["`","StatsRecorder","`","with","PFRL","'s","`","ContinuingTimeLimit","`","support",".","For","details",",","see","https",":","\/\/github.com\/openai\/gym\/blob\/master\/gym\/wrappers\/monitoring\/stats_recorder.py"]
code: def before_reset(self):
      assert not self.closed
  
      if self.done is not None and not self.done and self.steps > 0:
          self.logger.debug(
              "Tried to reset the env which is not done=True. "
              "StatsRecorder completes the last episode."
          )
          self.save_complete()
  
      self.done = False
      if self.initial_reset_timestamp is None:
          self.initial_reset_timestamp = time.time()
  
file_path: pfrl/pfrl/wrappers/monitor.py
imports: import time
  from logging import getLogger
label_desc: Use image node_id 2 for calling the _StatsRecorder obj's underlying member method code with example usage: obj.before_reset() without return types