class_docstr: Custom sphinx-gallery scraper to save the current Canvas to an image.
code: def __repr__(self):
      return self.__class__.__name__
  
imports: from __future__ import annotations
  import os
  import time
  import shutil
  from vispy.io import imsave
  from vispy.gloo.util import _screenshot
  from vispy.scene import SceneCanvas
  from sphinx_gallery.scrapers import optipng, figure_rst
label_desc: Use image node_id 1 for calling the VisPyGalleryScraper obj's underlying member method code with example usage: obj.__repr__() and returns: self