code: def test_image():
      # Test fails for matplotlib 1.5+ because the size of the image
      # generated by matplotlib has changed.
      if Version(matplotlib.__version__) == Version("3.4.1"):
          image_size = 432
      else:
          pytest.skip("Test fails for older matplotlib")
      np.random.seed(0)  # image size depends on the seed
      fig, ax = plt.subplots(figsize=(2, 2))
      ax.imshow(
          np.random.random((10, 10)),
          cmap=plt.cm.jet,
          interpolation="nearest",
      )
      _assert_output_equal(
          fake_renderer_output(fig, FakeRenderer),
          f"""
                           opening figure
                           opening axes
                           draw image of size {image_size} 
                           closing axes
                           closing figure
                           """,
      )
  
imports: import matplotlib
  import numpy
  import pytest
  from numpy.testing import assert_warns
  from packaging.version import Version
  from ..exporter import Exporter
  from ..renderers import FakeRenderer, FullFakeRenderer
  from .None import plt
label_desc: Use image node_id 10 for calling a global function with example usage: test_image() without return types