code: def test_complex(tmpdir):
      name = str(tmpdir.join("complex.tif"))
      arr1 = np.ones((2, 2), dtype=complex_)
      profile = dict(
          driver="GTiff", width=2, height=2, count=1, dtype=complex_
      )
  
      with rasterio.open(name, "w", **profile) as dst:
          dst.write(arr1, 1)
  
      with rasterio.open(name) as src:
          arr2 = src.read(1)
  
      assert np.array_equal(arr1, arr2)
  
imports: import numpy
  import pytest
  from .conftest import gdal_version
  import rasterio
  from rasterio import ubyte, uint8, uint16, uint32, uint64, int8, int16, int32, int64, float32, float64, complex_, complex_int16
  from rasterio.dtypes import _gdal_typename, is_ndarray, check_dtype, get_minimum_dtype, can_cast_dtype, validate_dtype, _is_complex_int, _getnpdtype, _get_gdal_dtype
label_desc: Use image node_id 13 for calling a global function with example usage: test_complex(tmpdir) without return types