code: def test_write_float32_png_fails_for_values_not_between_0_and_1(
      tmpdir,
  ):
      img_data = np.linspace(0, 2.0, 8 * 8, dtype=np.float32).reshape(
          (8, 8, 1)
      )
      with pytest.raises(ValueError):
          file_io.write_png(img_data, tmpdir / "ValueError.png")
  
file_path: kubric/test/test_fileio.py
imports: import numpy
  import pytest
  from kubric import file_io
label_desc: Use image node_id 7 for calling a global function with example usage: test_write_float32_png_fails_for_values_not_between_0_and_1(tmpdir) without return types