code: def test_read_array(tempfile, dtype, height, width):
      """_io functions read and write arrays correctly"""
      in_img = complex_image(height, width, dtype)
      with rasterio.open(
          tempfile,
          "w+",
          driver="GTiff",
          dtype=dtype,
          height=height,
          width=width,
          count=1,
      ) as dataset:
          dataset.write(in_img, 1)
          out_img = dataset.read(1)
      assert (in_img == out_img).all()
  
file_path: rasterio/tests/test_complex_dtypes.py
imports: import subprocess
  import uuid
  import numpy
  import pytest
  import rasterio
label_desc: Use image node_id 3 for calling a global function with example usage: test_read_array(tempfile, dtype, height, width) without return types