code: def test_procedual_writing(test_images):
      buffer = io.BytesIO()
      with iio.imopen(
          buffer, "w", plugin="pyav", extension=".mp4"
      ) as file:
          file.init_video_stream("h264")
          for frame in iio.imiter(
              test_images / "cockatoo.mp4", plugin="pyav"
          ):
              file.write_frame(frame)
  
      buffer.seek(0)
      actual = iio.imread(buffer, plugin="pyav", extension=".mp4")
  
      assert actual.shape == (280, 720, 1280, 3)
  
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 24 for calling a global function with example usage: test_procedual_writing(test_images) without return types