class_docstr: `Monitor` with ChainerRL's `ContinuingTimeLimit` support.
  
  `Agent` in ChainerRL might reset the env even when `done=False`
  if `ContinuingTimeLimit` returns `info['needs_reset']=True`,
  which is not expected for `gym.Monitor`.
  
  For details, see
  https://github.com/openai/gym/blob/master/gym/wrappers/monitor.py
class_docstr_tok: ["`","Monitor","`","with","ChainerRL","'s","`","ContinuingTimeLimit","`","support",".","`","Agent","`","in","ChainerRL","might","reset","the","env","even","when","`","done=False","`","if","`","ContinuingTimeLimit","`","returns","`","info","[","'needs_reset","'","]","=True","`",",","which","is","not","expected","for","`","gym.Monitor","`",".","For","details",",","see","https",":","\/\/github.com\/openai\/gym\/blob\/master\/gym\/wrappers\/monitor.py"]
code: def _start(
      self,
      directory,
      video_callable=None,
      force=False,
      resume=False,
      write_upon_reset=False,
      uid=None,
      mode=None,
  ):
      if self.env_semantics_autoreset:
          raise NotImplementedError(
              "Detect 'semantics.autoreset=True' in `env.metadata`, "
              "which means the env is from deprecated OpenAI Universe."
          )
      ret = super()._start(
          directory=directory,
          video_callable=video_callable,
          force=force,
          resume=resume,
          write_upon_reset=write_upon_reset,
          uid=uid,
          mode=mode,
      )
      env_id = self.stats_recorder.env_id
      self.stats_recorder = _StatsRecorder(
          directory,
          "{}.episode_batch.{}".format(
              self.file_prefix, self.file_infix
          ),
          autoreset=False,
          env_id=env_id,
      )
      return ret
  
file_path: chainerrl/chainerrl/wrappers/monitor.py
imports: from logging import getLogger
  import time
  from gym.wrappers import Monitor
  from gym.wrappers.monitoring.stats_recorder import StatsRecorder
label_desc: Use image node_id 1 for calling the Monitor obj's underlying member method code with example usage: obj._start(directory, video_callable, force, resume, write_upon_reset, uid, mode) and returns: ret