code: def test_get_image_content_from_figure(self):
      # given
      pyplot.plot([1, 2, 3, 4])
      pyplot.ylabel("some interesting numbers")
      figure = pyplot.gcf()
      figure.canvas.draw()
  
      # expect
      self.assertEqual(
          get_image_content(figure), _get_figure_as_image(figure)
      )
  
imports: import os
  import sys
  import unittest
  from uuid import uuid4
  import matplotlib
  import numpy
  from matplotlib import pyplot
  from PIL import Image
  from neptune.common.utils import IS_MACOS, IS_WINDOWS
  from neptune.legacy.internal.utils.image import _get_figure_as_image, _get_pil_image_data, get_image_content
label_desc: Use image node_id 8 for calling the TestImage obj's underlying member method code with example usage: obj.test_get_image_content_from_figure() without return types