code: def test_boolean_writing(tmp_path):
      # Bugfix: https://github.com/imageio/imageio/issues/721
      expected = np.arange(256 * 256).reshape((256, 256)) % 2 == 0
  
      iio.imwrite(tmp_path / "iio.png", expected)
  
      actual = np.asarray(Image.open(tmp_path / "iio.png"))
      # actual = iio.imread(tmp_path / "iio.png")
      assert np.allclose(actual, expected)
  
imports: import io
  import os
  from pathlib import Path
  import imageio.v3
  import numpy
  import pytest
  from imageio.core.request import InitializationError, Request
  from imageio.core.v3_plugin_api import PluginV3
  from imageio.plugins.pillow import PillowPlugin
  from PIL import Image, ImageSequence, ImageOps, __version__
label_desc: Use image node_id 31 for calling a global function with example usage: test_boolean_writing(tmp_path) without return types