code: def test_write_bytes(test_images):
      img_expected = iio.imread(test_images / "chelsea.png")
  
      img_encoded = iio.imwrite(
          "<bytes>", img_expected, plugin="opencv", extension=".png"
      )
      result = iio.imread(img_encoded)
  
      np.allclose(result, img_expected)
  
file_path: imageio/tests/test_opencv.py
imports: import warnings
  import imageio.v3
  import numpy
  import pytest
  import cv2
label_desc: Use image node_id 6 for calling a global function with example usage: test_write_bytes(test_images) without return types