code: def test_warnings(tmp_path, test_images):
      img = iio.imread(test_images / "chelsea.png")
  
      with iio.get_writer(tmp_path / "test.png") as writer:
          with pytest.warns(UserWarning):
              writer.append_data(img, meta={"meta_key": "meta_value"})
  
file_path: imageio/tests/test_v2.py
imports: import pytest
  import imageio.v2
  import numpy
label_desc: Use image node_id 7 for calling a global function with example usage: test_warnings(tmp_path, test_images) without return types