code: def test_update_spatial_epsg(data):
      tiffname = str(data.join("RGB.byte.tif"))
      with rasterio.open(tiffname, "r+") as f:
          f.transform = affine.Affine(1.0, 0.0, 1.0, 0.0, -1.0, 0.0)
          f.crs = "EPSG:4326"
      with rasterio.open(tiffname) as f:
          assert f.transform == affine.Affine(
              1.0, 0.0, 1.0, 0.0, -1.0, 0.0
          )
          assert f.transform.to_gdal() == (
              1.0,
              1.0,
              0.0,
              0.0,
              0.0,
              -1.0,
          )
          assert f.crs == {"init": "epsg:4326"}
  
file_path: rasterio/tests/test_update.py
imports: import subprocess
  import re
  import affine
  import numpy
  import pytest
  import rasterio
label_desc: Use image node_id 4 for calling a global function with example usage: test_update_spatial_epsg(data) without return types