code: def pytest_assertrepr_compare(op, left, right):
      if (
          isinstance(left, ggplot)
          and isinstance(right, str)
          and op == "=="
      ):
          msg = (
              "images not close: {actual:s} vs. {expected:s} "
              "(RMS {rms:.2f})".format(**left._err)
          )
          return [msg]
  
imports: import inspect
  import locale
  import shutil
  import types
  import warnings
  from copy import deepcopy
  from pathlib import Path
  import matplotlib
  import matplotlib.pyplot
  from matplotlib.testing.compare import compare_images
  from plotnine import ggplot, theme
label_desc: Use image node_id 5 for calling a global function with example usage: pytest_assertrepr_compare(op, left, right) and returns: list