code: def test_edit_transform_affine(data, runner):
      inputfile = str(data.join("RGB.byte.tif"))
      input_t = "[300.038, 0.0, 101985.0, 0.0, -300.042, 2826915.0]"
      result = runner.invoke(
          main_group, ["edit-info", inputfile, "--transform", input_t]
      )
      assert result.exit_code == 0
      with rasterio.open(inputfile) as src:
          for a, b in zip(src.transform, json.loads(input_t)):
              assert round(a, 6) == round(b, 6)
  
imports: import json
  import click
  import numpy
  import pytest
  import rasterio
  from rasterio.enums import ColorInterp
  from rasterio.rio.edit_info import all_handler, crs_handler, tags_handler, transform_handler, colorinterp_handler
  from rasterio.rio.main import main_group
  import rasterio.shutil
label_desc: Use image node_id 13 for calling a global function with example usage: test_edit_transform_affine(data, runner) without return types