code: def test_basic_figure():
      size = (8, 6)
      dpi = 80
      fig = plt.figure(figsize=size, dpi=dpi)
      rep = fig_to_dict(fig)
      plt.close(fig)
  
      assert_equal(
          list(sorted(rep.keys())),
          ["axes", "data", "height", "id", "plugins", "width"],
      )
      assert_equal(rep["width"], size[0] * dpi)
      assert_equal(rep["height"], size[1] * dpi)
      assert_equal(rep["data"], {})
      assert_equal(rep["axes"], [])
  
imports: import matplotlib.pyplot
  from ..None import fig_to_dict
  from numpy.testing import assert_equal
label_desc: Use image node_id 1 for calling a global function with example usage: test_basic_figure() without return types