code: def test_format_selection(test_images, tmp_path):
      fname1 = test_images / "stent.swf"
      fname2 = tmp_path / "stent.out.swf"
  
      F = iio.formats["swf"]
      assert F.name == "SWF"
      assert type(iio.formats[".swf"]) is type(F)
  
      assert type(iio.read(fname1).format) is type(F)
      assert type(iio.save(fname2).format) is type(F)
  
file_path: imageio/tests/test_swf.py
imports: import numpy
  import pytest
  import imageio.v2
  import imageio.plugins
  from imageio import core
  from imageio.core import IS_PYPY
  from conftest import deprecated_test
label_desc: Use image node_id 2 for calling a global function with example usage: test_format_selection(test_images, tmp_path) without return types