class_docstr: Save ``pyvista.Plotter`` objects.
  
  Used by sphinx-gallery to generate the plots from the code in the examples.
  
  Pass an instance of this class to ``sphinx_gallery_conf`` in your
  ``conf.py`` as the ``"image_scrapers"`` argument.
  
  Be sure to set ``pyvista.BUILDING_GALLERY = True`` in your ``conf.py``.
docstr: Save the figures generated after running example code.
  
  Called by sphinx-gallery.
docstr_tok: ["Save","the","figures","generated","after","running","example","code",".","Called","by","sphinx-gallery","."]
code: def __call__(self, block, block_vars, gallery_conf):
      """Save the figures generated after running example code.
  
      Called by sphinx-gallery.
  
      """
      from sphinx_gallery.scrapers import figure_rst
  
      if not pyvista.BUILDING_GALLERY:
          raise RuntimeError(BUILDING_GALLERY_ERROR_MSG)
  
      image_path_iterator = block_vars["image_path_iterator"]
      image_names = generate_images(image_path_iterator, dynamic=False)
      return figure_rst(image_names, gallery_conf["src_dir"])
  
file_path: pyvista/pyvista/plotting/utilities/sphinx_gallery.py
imports: import os
  import shutil
  from typing import Iterator, List
  import pyvista
label_desc: Use image node_id 2 for calling the Scraper obj's underlying member method code with example usage: obj.__call__(block, block_vars, gallery_conf) and returns: figure_rst