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()
      imageio.imwrite(bytes_io, image, "jpeg")
      bytes_io.seek(0)
  
      image_from_file = imageio.imread(bytes_io)
      assert np.allclose(image_from_file, image)
  
imports: import os
  import sys
  import io
  from zipfile import ZipFile
  import numpy
  import pytest
  import imageio
  from imageio import core
  from conftest import deprecated_test
label_desc: Use image node_id 17 for calling a global function with example usage: test_write_jpg_to_bytes_io() without return types