code: def image_comparison(
      baseline_images,
      tol=0,
      remove_text=False,
  ):
      """
      Compare images generated by the test with those specified in
      *baseline_images*, which must correspond, else an `ImageComparisonFailure`
      exception will be raised.
      Parameters
      ----------
      baseline_images : list or None
          A list of strings specifying the names of the images generated by
          calls to `.Figure.savefig`.
          If *None*, the test function must use the ``baseline_images`` fixture,
          either as a parameter or with `pytest.mark.usefixtures`. This value is
          only allowed when using pytest.
      tol : float, default: 0
          The RMS threshold above which the test is considered failed.
          Due to expected small differences in floating-point calculations, on
          32-bit systems an additional 0.06 is added to this threshold.
      remove_text : bool
          Remove the title and tick text from the figure before comparison.  This
          is useful to make the baseline images independent of variations in text
          rendering between different versions of FreeType.
          This does not remove other, more deliberate, text, such as legends and
          annotations.
      savefig_kwarg : dict
          Optional arguments that are passed to the savefig method.
      style : str, dict, or list
          The optional style(s) to apply to the image test. The test itself
          can also apply additional styles if desired. Defaults to ``["classic",
          "_classic_test_patch"]``.
      """
      if sys.maxsize <= 2**32:
          tol += 0.06
      return _unittest_image_comparison(
          baseline_images=baseline_images,
          tol=tol,
          remove_text=remove_text,
      )
  
file_path: python-igraph/tests/drawing/plotly/utils.py
imports: from pathlib import Path
  import sys
  import inspect
  import functools
label_desc: Use image node_id 9 for calling a global function with example usage: image_comparison(baseline_images, tol, remove_text) and returns: _unittest_image_comparison