class_docstr: Execute the file and store the output, docstring, and
  sequence of matplotlib figures
code: def save_figures(
      self,
      fmt,
      thumb_fmt=None,
      scale=0.2,
      max_width=200,
      max_height=150,
      interpolation="bilinear",
      **savefig_kwds,
  ):
      from matplotlib import colors
  
      figlist = []
  
      for fig in self.figlist:
          figfile = fmt % fig.number
          print("saving", figfile)
  
          # if black background, save with black background as well.
          if colors.colorConverter.to_rgb(fig.get_facecolor()) == (
              0,
              0,
              0,
          ):
              fig.savefig(
                  figfile,
                  facecolor="k",
                  edgecolor="none",
                  **savefig_kwds,
              )
          else:
              fig.savefig(figfile, **savefig_kwds)
          plt.close(fig)
  
          if thumb_fmt is not None:
              thumbfile = thumb_fmt % fig.number
              fig = create_thumbnail(
                  figfile,
                  thumbfile,
                  scale,
                  max_width,
                  max_height,
                  interpolation,
              )
              plt.close(fig)
  
          figlist.append(figfile)
  
      return figlist
  
imports: import sys
  import os
  import traceback
  import token
  import tokenize
  import gc
  import shutil
  import glob
  import warnings
  import matplotlib
  from matplotlib import image
  from matplotlib import pyplot
label_desc: Use image node_id 2 for calling the ExecFile obj's underlying member method code with example usage: obj.save_figures(fmt, thumb_fmt, scale, max_width, max_height, interpolation) and returns: figlist