code: def test_image():
      # Prior to v1.4.0 the Image would cache data which was not picklable
      # once it had been drawn.
      from matplotlib.backends.backend_agg import new_figure_manager
  
      manager = new_figure_manager(1000)
      fig = manager.canvas.figure
      ax = fig.add_subplot(1, 1, 1)
      ax.imshow(np.arange(12).reshape(3, 4))
      manager.canvas.draw()
      pickle.dump(fig, BytesIO())
  
imports: from io import BytesIO
  import ast
  import pickle
  import pickletools
  import numpy
  import pytest
  import matplotlib
  from matplotlib import cm
  from matplotlib.testing import subprocess_run_helper
  from matplotlib.testing.decorators import check_figures_equal
  from matplotlib.dates import rrulewrapper
  from matplotlib.lines import VertexSelector
  import matplotlib.pyplot
  import matplotlib.transforms
  import matplotlib.figure
  from mpl_toolkits.axes_grid1 import parasite_axes
label_desc: Use image node_id 9 for calling a global function with example usage: test_image() without return types