code: def test_write_crs_transform_3(tmpdir):
      """Using WKT as CRS."""
      name = str(tmpdir.join("test_write_crs_transform.tif"))
      a = np.ones((100, 100), dtype=rasterio.ubyte) * 127
      transform = affine.Affine(
          300.0379266750948,
          0.0,
          101985.0,
          0.0,
          -300.041782729805,
          2826915.0,
      )
      wkt = 'PROJCS["WGS 84 / UTM zone 18N",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["Easting",EAST],AXIS["Northing",NORTH],AUTHORITY["EPSG","32618"]]'
  
      with rasterio.open(
          name,
          "w",
          driver="GTiff",
          width=100,
          height=100,
          count=1,
          crs=wkt,
          transform=transform,
          dtype=rasterio.ubyte,
      ) as s:
          s.write(a, indexes=1)
      assert s.crs.to_epsg() == 32618
      info = subprocess.check_output(["gdalinfo", name]).decode("utf-8")
      assert "UTM zone 18N" in info
      # make sure that pixel size is nearly the same as transform
      # (precision varies slightly by platform)
      assert re.search(
          r"Pixel Size = \(300.03792\d+,-300.04178\d+\)", info
      )
  
imports: import logging
  import re
  from pathlib import Path
  import subprocess
  import affine
  import numpy
  import pytest
  from .conftest import requires_gdal35, gdal_version
  import rasterio
  from rasterio.drivers import blacklist
  from rasterio.enums import MaskFlags, Resampling
  from rasterio.env import Env, GDALVersion
  from rasterio.errors import RasterioIOError
label_desc: Use image node_id 16 for calling a global function with example usage: test_write_crs_transform_3(tmpdir) without return types