code: def test_get_image_content_from_tensorflow_tensor(self):
      import tensorflow as tf
  
      # given
      image_tensor = tf.random.uniform(shape=[200, 300, 3])
      expected_array = image_tensor.numpy() * 255
      expected_image = Image.fromarray(
          expected_array.astype(numpy.uint8)
      )
  
      # expect
      self.assertEqual(
          get_image_content(image_tensor),
          self._encode_pil_image(expected_image),
      )
  
imports: import contextlib
  import io
  import os
  import sys
  import unittest
  from typing import Optional
  from uuid import uuid4
  import altair
  import matplotlib
  import numpy
  import pandas
  import plotly.express
  import seaborn
  from bokeh.plotting import figure
  from matplotlib import pyplot
  from matplotlib.figure import Figure
  from PIL import Image
  from vega_datasets import data
  from neptune.common.utils import IS_MACOS, IS_WINDOWS
  from neptune.internal.utils.images import get_html_content, get_image_content
label_desc: Use image node_id 9 for calling the TestImage obj's underlying member method code with example usage: obj.test_get_image_content_from_tensorflow_tensor() without return types