code: def test_read_view_offset(tempfile, dtype, height, width):
      """_io functions read views with offsets correctly"""
      in_img = image(height, width, dtype)
      with rasterio.open(
          tempfile,
          "w+",
          driver="GTiff",
          dtype=dtype,
          height=10,
          width=15,
          count=1,
      ) as dataset:
          dataset.write(in_img[5:15, 5:20], 1)
          out_img = dataset.read(1)
      assert (in_img[5:15, 5:20] == out_img).all()
  
file_path: rasterio/tests/test_gdal_raster_io.py
imports: import logging
  import sys
  import uuid
  import numpy
  import pytest
  import rasterio
label_desc: Use image node_id 5 for calling a global function with example usage: test_read_view_offset(tempfile, dtype, height, width) without return types