code: def test_write_read_rgb_float32_png(tmpdir):
      """Float32 images are automatically converted to uint16."""
      filename = tmpdir / "rgb_float32.png"
      img_data = np.linspace(
          0, 1.0, 32 * 32 * 3, dtype=np.float32
      ).reshape((32, 32, 3))
      file_io.write_png(img_data, filename)
      img_data_recovered = file_io.read_png(filename)
      img_data_uint16 = (img_data * 65535).astype(np.uint16)
      np.testing.assert_array_equal(img_data_recovered, img_data_uint16)
  
file_path: kubric/test/test_fileio.py
imports: import numpy
  import pytest
  from kubric import file_io
label_desc: Use image node_id 8 for calling a global function with example usage: test_write_read_rgb_float32_png(tmpdir) without return types