code: def test_write_batch(test_images, tmp_path):
      img_expected = iio.imread(test_images / "newtonscradle.gif")
  
      iio.imwrite(
          tmp_path / "test.tiff",
          img_expected,
          plugin="opencv",
          is_batch=True,
      )
      img = iio.imread(tmp_path / "test.tiff", plugin="opencv")
      np.allclose(img, img_expected)
  
      img_list = [x for x in img_expected]
      iio.imwrite(
          tmp_path / "test.tiff",
          img_list,
          plugin="opencv",
          is_batch=True,
      )
      img = iio.imread(tmp_path / "test.tiff", plugin="opencv")
      np.allclose(img, 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 7 for calling a global function with example usage: test_write_batch(test_images, tmp_path) without return types