code: def test_select(test_images):
      F = iio.formats["BSDF"]
      assert F.name == "BSDF"
  
      fname1 = test_images / "chelsea.bsdf"
  
      assert F.can_read(core.Request(fname1, "rI"))
      assert F.can_write(core.Request(fname1, "wI"))
      assert F.can_read(core.Request(fname1, "ri"))
      assert F.can_read(core.Request(fname1, "rv"))
  
      assert type(iio.formats[".bsdf"]) is type(F)
      assert type(
          iio.formats.search_write_format(core.Request(fname1, "wi"))
      ) is type(F)
      assert type(
          iio.formats.search_read_format(core.Request(fname1, "ri"))
      ) is type(F)
      assert type(
          iio.formats.search_write_format(core.Request(fname1, "wI"))
      ) is type(F)
      assert type(
          iio.formats.search_read_format(core.Request(fname1, "rI"))
      ) is type(F)
  
file_path: imageio/tests/test_bsdf.py
imports: import numpy
  from pytest import raises
  from imageio import core
  import imageio.v2
  from imageio.plugins import _bsdf
  import pytest
  import sys
  from conftest import deprecated_test
label_desc: Use image node_id 1 for calling a global function with example usage: test_select(test_images) without return types