class_docstr: An image comparison wraps a single ``assert_images_similar`` statement to
  compose the actual and baseline image paths based on the stack the
  assertion was called in. It contains all properties that were formerly
  set on the test case (to facilitate our transition to pytest) so that they
  are immutable with respect to the single image comparison. By
  encapsulating these details, it is easier to debug image comparisons in
  meta tests.
  
  Parameters
  ----------
  stack : list of FrameInfo
      The list of the frame records for the caller's stack obtained from the
      ``inspect.stack()`` function. Must be called from the entry point to
      the image comparison (e.g. the next function from the test function).
  
  visualizer : Yellowbrick Visualizer instance, optional
      An instantiated Yellowbrick visualizer that wraps a matplotlib Axes
      and has been drawn on via the Yellowbrick API. If a visualizer is specified,
      generally speaking it should have a call to ``finalize()`` performed, but not a
      call to ``show()``.
  
  ax : matplotlib Axes, optional
      A direct reference to a matplotlib Axes that has been drawn on. If using the
      Axes object, you should not call ``plt.show()``.
  
  tol : float, default: 0.01
      The tolerance as a color value difference, where 255 is the maximal
      difference. The test fails if the average pixel difference is greater
      than this value.
  
  windows_tol : float, default: 0.01
      The tolerance (tol) parameter for the windows operating system environment.
  
  ext : string, default: ".png"
      The file extension to save the actual and baseline images as.
  
  remove_ticks : bool, default: True
      Remove the major and minor ticks on both the y and x axis to make the
      image comparison simpler (since different OS may have varying fonts or
      system level preferences).
  
  remove_title : bool, default: True
      Remove the title since different OS may have varying fonts.
  
  remove_labels : bool, default: True
      Remove the x and y labels since different OS may have varying fonts.
  
  remove_legend : bool, default: True
      Remove the legend since different OS may have varying fonts.
  
  Raises
  ------
  ValueError : at least one of visualizer or ax must be specified.
docstr: Executes the image comparison by cleaning up the actual figure, saving
  the actual figure, then comparing the actual figure to the baseline.
docstr_tok: ["Executes","the","image","comparison","by","cleaning","up","the","actual","figure",",","saving","the","actual","figure",",","then","comparing","the","actual","figure","to","the","baseline","."]
code: def __call__(self):
      """
      Executes the image comparison by cleaning up the actual figure, saving
      the actual figure, then comparing the actual figure to the baseline.
      """
      # Hide this method from the pytest traceback on test failure.
      __tracebackhide__ = True
  
      self.cleanup()
      self.save()
      self.compare()
  
imports: import os
  import sys
  import inspect
  import matplotlib
  import matplotlib.pyplot
  from matplotlib import ticker
  from matplotlib.testing.compare import compare_images
  from yellowbrick.exceptions import ImageComparisonFailure
label_desc: Use image node_id 2 for calling the ImageComparison obj's underlying member method code with example usage: obj.__call__() without return types