class_docstr: Wrapper which creates and records videos from generated observations.
  
  This will limit itself to recording once every `record_every` episodes and
  videos will be recorded to the directory `path` + '/<unique id>/videos' where
  `path` defaults to '~/acme'. Users can specify the size of the screen by
  passing either a tuple giving height and width or a float giving the size
  of the diagonal.
code: def reset(self) -> dm_env.TimeStep:
      # If the frame buffer is nonempty, flush it and record video
      if self._frames:
          self._write_frames()
      self._counter += 1
      timestep = self.environment.reset()
      self._append_frame(timestep.observation)
      return timestep
  
imports: import os.path
  import tempfile
  from typing import Callable, Optional, Sequence, Tuple, Union
  from acme.utils import paths
  from acme.wrappers import base
  import dm_env
  import matplotlib
  import matplotlib.animation
  import matplotlib.pyplot
  import numpy
label_desc: Use image node_id 6 for calling the VideoWrapper obj's underlying member method code with example usage: obj.reset() and returns: timestep