code: def test_preferring_arbitrary():
      # Normally, these exotic formats are somewhere in the back
      imageio.formats.sort()
      names = [f.name for f in imageio.formats]
      assert "DICOM" not in names[:10]
      assert "FFMPEG" not in names[:10]
      assert "NPZ" not in names[:10]
  
      # But we can move them forward
      imageio.formats.sort("DICOM", "FFMPEG", "NPZ")
      names = [f.name for f in imageio.formats]
      assert names[0] == "DICOM"
      assert names[1] == "FFMPEG"
      assert names[2] == "NPZ"
  
      # And back to normal ..
      imageio.formats.sort()
      names = [f.name for f in imageio.formats]
      assert "DICOM" not in names[:10]
      assert "FFMPEG" not in names[:10]
      assert "NPZ" not in names[:10]
  
imports: import gc
  import shutil
  from pathlib import Path
  import sys
  from typing import List
  import imageio
  import imageio
  import numpy
  import pytest
  from imageio.core import Format, FormatManager, Request
  from pytest import raises
  from conftest import deprecated_test
label_desc: Use image node_id 9 for calling a global function with example usage: test_preferring_arbitrary() without return types