code: def test_exr_write(setup_library):
      expected = np.full((128, 128, 3), 0.42, dtype=np.float32)
      buffer = iio3.imwrite("<bytes>", expected, extension=".exr")
  
      actual = iio3.imread(buffer)
  
      np.allclose(actual, expected)
  
imports: import os
  import shutil
  import sys
  import platform
  import warnings
  import fsspec
  import imageio.plugins
  import imageio.v3
  import imageio.v2
  import numpy
  import pytest
  from imageio import core
  from imageio.core import IS_PYPY
  from pytest import raises
  from conftest import deprecated_test
label_desc: Use image node_id 23 for calling a global function with example usage: test_exr_write(setup_library) without return types