code: def test_axes():
      bbox = [0.1, 0.1, 0.8, 0.8]
      xlim = [-10, 10]
      ylim = [-20, 20]
  
      fig = plt.figure()
      ax = fig.add_axes(bbox)
      ax.set_xlim(xlim)
      ax.set_ylim(ylim)
  
      rep = fig_to_dict(fig)
      axrep = rep["axes"][0]
  
      assert_equal(
          list(sorted(axrep.keys())),
          [
              "axes",
              "axesbg",
              "axesbgalpha",
              "bbox",
              "collections",
              "id",
              "images",
              "lines",
              "markers",
              "paths",
              "sharex",
              "sharey",
              "texts",
              "xdomain",
              "xlim",
              "xscale",
              "ydomain",
              "ylim",
              "yscale",
              "zoomable",
          ],
      )
  
      for key in [
          "collections",
          "images",
          "lines",
          "markers",
          "paths",
          "texts",
      ]:
          assert_equal(axrep[key], [])
  
      for key in ["xlim", "xdomain"]:
          assert_equal(axrep[key], xlim)
  
      for key in ["ylim", "ydomain"]:
          assert_equal(axrep[key], ylim)
  
      for key in ["xscale", "yscale"]:
          assert_equal(axrep[key], "linear")
  
      assert_equal(axrep["zoomable"], True)
  
      assert_equal(axrep["bbox"], bbox)
  
imports: import matplotlib.pyplot
  from ..None import fig_to_dict
  from numpy.testing import assert_equal
label_desc: Use image node_id 2 for calling a global function with example usage: test_axes() without return types