code: def test_write_png(test_images, tmp_path):
      img_expected = iio.imread(
          test_images / "chelsea.png", plugin="pyav", index=0
      )
      iio.imwrite(
          tmp_path / "out.png",
          img_expected,
          plugin="pyav",
          codec="png",
          is_batch=False,
          out_pixel_format="rgb24",
      )
      img_actual = iio.imread(tmp_path / "out.png", plugin="pyav")
  
      assert np.allclose(img_actual, img_expected)
  
imports: import io
  import warnings
  from contextlib import ExitStack
  from pathlib import Path
  import numpy
  import pytest
  from conftest import IS_PYPY
  import imageio.v3
  from av.video.format import names
  from imageio.plugins.pyav import _format_to_dtype
label_desc: Use image node_id 11 for calling a global function with example usage: test_write_png(test_images, tmp_path) without return types