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 = iio3.imwrite("<bytes>", expected, extension=".tiff")
      actual = iio.imread(img_bytes)
  
      assert np.allclose(actual, expected)
  
imports: import datetime
  import io
  import warnings
  from copy import deepcopy
  import numpy
  import pytest
  from conftest import deprecated_test
  import imageio.v2
  import imageio.v3
  from imageio.config import known_extensions, known_plugins
label_desc: Use image node_id 11 for calling a global function with example usage: test_bool_writing() without return types