code: def __init__(self, nsteps, nenvs):
      self.episode_rewards = []
      for i in range(nenvs):
          self.episode_rewards.append([])
      self.lenbuffer = deque(
          maxlen=40
      )  # rolling buffer for episode lengths
      self.rewbuffer = deque(
          maxlen=40
      )  # rolling buffer for episode rewards
      self.nsteps = nsteps
      self.nenvs = nenvs
  
imports: import os
  import numpy
  import tensorflow
  from collections import deque
label_desc: Use image node_id 1 to create a new EpisodeStats object  with example: obj = EpisodeStats(nsteps, nenvs)