code: def test_simple():
      fig = plt.figure()
      pickle.dump(fig, BytesIO(), pickle.HIGHEST_PROTOCOL)
  
      ax = plt.subplot(121)
      pickle.dump(ax, BytesIO(), pickle.HIGHEST_PROTOCOL)
  
      ax = plt.axes(projection="polar")
      plt.plot(np.arange(10), label="foobar")
      plt.legend()
  
      pickle.dump(ax, BytesIO(), pickle.HIGHEST_PROTOCOL)
  
      #    ax = plt.subplot(121, projection='hammer')
      #    pickle.dump(ax, BytesIO(), pickle.HIGHEST_PROTOCOL)
  
      plt.figure()
      plt.bar(x=np.arange(10), height=np.arange(10))
      pickle.dump(plt.gca(), BytesIO(), pickle.HIGHEST_PROTOCOL)
  
      fig = plt.figure()
      ax = plt.axes()
      plt.plot(np.arange(10))
      ax.set_yscale("log")
      pickle.dump(fig, BytesIO(), pickle.HIGHEST_PROTOCOL)
  
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 1 for calling a global function with example usage: test_simple() without return types