code: def test_write_jpg_to_bytes_io():
      # this is a regression test
      # see: https://github.com/imageio/imageio/issues/687
  
      image = np.zeros((200, 200), dtype=np.uint8)
      bytes_io = io.BytesIO()
      iio.imwrite(
          bytes_io, image, plugin="pillow", extension=".jpeg", mode="L"
      )
      bytes_io.seek(0)
  
      image_from_file = iio.imread(bytes_io, plugin="pillow")
      assert np.allclose(image_from_file, image)
  
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 28 for calling a global function with example usage: test_write_jpg_to_bytes_io() without return types