code: def test_summarywriter_image_float_pixel_values(self):
      log_dir = tempfile.mkdtemp()
      summary_writer = SummaryWriter(log_dir=log_dir)
      expected_img = np.random.uniform(
          low=0.0, high=1.0, size=(30, 30, 3)
      )
      summary_writer.image(tag="image_test", image=expected_img, step=1)
      summary_value = self.parse_and_return_summary_value(path=log_dir)
  
      # convert and scale expected_img appropriately to numpy uint8.
      expected_img = tf.image.convert_image_dtype(
          image=expected_img, dtype=np.uint8
      )
  
      self.assertEqual(summary_value.tag, "image_test")
      actual_img = tf.image.decode_image(
          summary_value.tensor.string_val[2]
      )
      self.assertTrue(np.allclose(actual_img, expected_img))
  
imports: import itertools
  import pathlib
  import tempfile
  import numpy
  import tensorflow
  from absl.testing import absltest
  from tensorboard.backend.event_processing import directory_watcher, event_file_loader
  from tensorboard.util import tensor_util
  from flax.metrics.tensorboard import SummaryWriter, _flatten_dict
label_desc: Use image node_id 6 for calling the TensorboardTest obj's underlying member method code with example usage: obj.test_summarywriter_image_float_pixel_values() without return types