class_docstr: Image comparison base class
  
  This class provides *just* the comparison-related functionality and avoids
  any code that would be specific to any testing framework.
code: def __init__(self, func, tol, remove_text, savefig_kwargs):
      self.func = func
      self.baseline_dir, self.result_dir = _image_directories(func)
      self.tol = tol
      self.remove_text = remove_text
      self.savefig_kwargs = savefig_kwargs
  
imports: import contextlib
  import functools
  import inspect
  import os
  from platform import uname
  from pathlib import Path
  import shutil
  import string
  import sys
  import warnings
  from packaging.version import parse
  import matplotlib.style
  import matplotlib.units
  import matplotlib.testing
  from matplotlib import _pylab_helpers, cbook, ft2font, pyplot, ticker
  from .compare import comparable_formats, compare_images, make_test_filename
  from .exceptions import ImageComparisonFailure
label_desc: Use image node_id 1 to create a new _ImageComparisonBase object  with example: obj = _ImageComparisonBase(func, tol, remove_text, savefig_kwargs)