code: def test_writer(test_images, tmp_path):
      img = iio.imread(test_images / "chelsea.png")
  
      with iio.get_writer(tmp_path / "test.png") as file:
          assert file.request.extension == ".png"
          file.append_data(img)
  
file_path: imageio/tests/test_v2.py
imports: import pytest
  import imageio.v2
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: test_writer(test_images, tmp_path) without return types