code: def test_get_image_content_from_2d_grayscale_array(self):
      # given
      image_array = numpy.random.rand(200, 300)
      scaled_array = image_array * 255
      expected_image = Image.fromarray(scaled_array.astype(numpy.uint8))
  
      # expect
      self.assertEqual(
          get_image_content(image_array),
          _get_pil_image_data(expected_image),
      )
  
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 4 for calling the TestImage obj's underlying member method code with example usage: obj.test_get_image_content_from_2d_grayscale_array() without return types