code: def test_lytro_raw_illum_reading(test_images):
      """Test reading of lytro .raw file"""
      # Get test images
      raw_file = test_images / RAW_ILLUM_FILENAME
      raw_meta_file = test_images / RAW_ILLUM_META_FILENAME
  
      # Read image and metadata file
      img = iio.imread(raw_file, format="lytro-illum-raw")
      meta_gt = json.load(open(raw_meta_file))
  
      # Test image shape and some pixel values
      # Pixel values are extracted from the Matlab reference implementation
      assert img.shape == (5368, 7728)
      assert round(img[24, 48], 15) == 0.738025415444770
      assert round(img[3692, 86], 15) == 0.132942326490714
      assert round(img[258, 1658], 15) == 0.687194525904203
      assert round(img[1349, 6765], 15) == 0.113391984359726
      assert round(img[210, 6761], 15) == 0.162267839687195
      assert round(img[5231, 6459], 15) == 0.784946236559140
      assert round(img[5213, 7477], 15) == 0.095796676441838
      assert round(img[2745, 3789], 15) == 0.760508308895406
      assert round(img[1428, 4192], 15) == 0.621700879765396
  
      # Test extracted metadata against extracted metadata from .txt file
      assert img._meta == meta_gt
  
      # Read metadata only
      img = iio.imread(
          raw_file, format="lytro-illum-raw", meta_only=True
      )
      assert np.array_equal(img, [])
      assert img._meta == meta_gt
  
      # Test fail
      test_reader = iio.read(raw_file, "lytro-illum-raw")
      with pytest.raises(IndexError):
          test_reader.get_data(-1)
  
      with pytest.raises(IndexError):
          test_reader.get_data(3)
  
file_path: imageio/tests/test_lytro.py
imports: from __future__ import division
  import numpy
  import json
  import pytest
  import imageio.v2
  from imageio.core import Request
  from conftest import deprecated_test
label_desc: Use image node_id 7 for calling a global function with example usage: test_lytro_raw_illum_reading(test_images) without return types