code: def test_save_load_identity(self):
      directory = self.get_tempdir()
      logger = image.ImageLogger(directory, label="foo")
      array = (np.random.rand(10, 10) * 255).astype(np.uint8)
      logger.write({"img": array})
  
      with open(f"{directory}/foo/img_000000.png", mode="rb") as f:
          out = np.asarray(Image.open(f))
      np.testing.assert_array_equal(array, out)
  
file_path: acme/acme/utils/loggers/image_test.py
imports: import os
  from acme.testing import test_utils
  from acme.utils.loggers import image
  import numpy
  from PIL import Image
  from absl.testing import absltest
label_desc: Use image node_id 1 for calling the ImageTest obj's underlying member method code with example usage: obj.test_save_load_identity() without return types