code: def test_get_reader_format(test_images):
      with iio.get_reader(test_images / "chelsea.png") as file:
          with pytest.raises(TypeError):
              file.format
  
file_path: imageio/tests/test_v2.py
imports: import pytest
  import imageio.v2
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: test_get_reader_format(test_images) without return types