code: def test_reader(test_images):
      with iio.get_reader(test_images / "chelsea.png") as file:
          assert file.request.extension == ".png"
  
          img = file.get_data(0)
          assert img.shape == (300, 451, 3)
  
          # read using alternative method
          file.set_image_index(0)
          img2 = file.get_next_data()
  
          assert np.allclose(img2, img)
  
file_path: imageio/tests/test_v2.py
imports: import pytest
  import imageio.v2
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: test_reader(test_images) without return types