code: def test_bool_writing():
      # regression test for
      # https://github.com/imageio/imageio/issues/852
  
      expected = (np.arange(255 * 123) % 2 == 0).reshape((255, 123))
  
      img_bytes = iio.imwrite("<bytes>", expected, extension=".tiff")
      actual = iio.imread(img_bytes)
  
      assert np.allclose(actual, expected)
  
imports: import datetime
  import numpy
  import pytest
  import io
  from copy import deepcopy
  import struct
  import imageio.v3
  from imageio.config import known_plugins, known_extensions
label_desc: Use image node_id 15 for calling a global function with example usage: test_bool_writing() without return types