code: def test_write_not_contiguous(test_images, tmp_path):
      fname1 = test_images / "cockatoo.mp4"
  
      R = iio.read(fname1, "ffmpeg")
      assert isinstance(R, imageio.plugins.ffmpeg.FfmpegFormat.Reader)
  
      fname2 = tmp_path / "cockatoo.out.mp4"
  
      # Read
      ims1 = []
      with iio.read(fname1, "ffmpeg") as R:
          for i in range(10):
              im = R.get_next_data()
              ims1.append(im)
  
      # Save non contiguous data
      with iio.save(fname2, "ffmpeg") as W:
          for im in ims1:
              # DOn't slice the first dimension since it won't be
              # a multiple of 16. This will cause the writer to expand
              # the data to make it fit, we won't be able to compare
              # the difference between the saved and the original images.
              im = im[:, ::2]
              assert not im.flags.c_contiguous
              W.append_data(im)
  
      ims2 = iio.mimread(fname2, "ffmpeg")
  
      # Check
      for im1, im2 in zip(ims1, ims2):
          diff = np.abs(
              im1[:, ::2].astype(np.float32) - im2.astype(np.float32)
          )
          if IS_PYPY:
              assert (diff.sum() / diff.size) < 100
          else:
              assert diff.mean() < 2.5
  
imports: import gc
  import os
  import platform
  import sys
  import threading
  import time
  import warnings
  from io import BytesIO
  from pathlib import Path
  import imageio.plugins
  import imageio.v2
  import imageio.v3
  import numpy
  import pytest
  from imageio import core
  from imageio.core import IS_PYPY
  from conftest import deprecated_test
label_desc: Use image node_id 8 for calling a global function with example usage: test_write_not_contiguous(test_images, tmp_path) without return types