code: def test_out_shape_no_segfault(path_rgb_byte_tif):
      """Prevent segfault as reported in 2189"""
      with rasterio.open(path_rgb_byte_tif) as src:
          with pytest.raises(DatasetIOShapeError):
              src.read(out_shape=(2, src.height, src.width))
  
imports: from hashlib import md5
  import unittest
  import numpy
  import pytest
  import rasterio
  from rasterio.errors import DatasetIOShapeError
label_desc: Use image node_id 4 for calling a global function with example usage: test_out_shape_no_segfault(path_rgb_byte_tif) without return types