code: def test_warp_reproject_like(runner, tmpdir):
      likename = str(tmpdir.join("like.tif"))
      kwargs = {
          "crs": {"init": "epsg:4326"},
          "transform": affine.Affine(
              0.001, 0, -106.523, 0, -0.001, 39.6395
          ),
          "count": 1,
          "dtype": rasterio.uint8,
          "driver": "GTiff",
          "width": 10,
          "height": 10,
          "nodata": 0,
      }
  
      with rasterio.open(likename, "w", **kwargs) as dst:
          data = np.zeros((10, 10), dtype=rasterio.uint8)
          dst.write(data, indexes=1)
  
      srcname = "tests/data/shade.tif"
      outputname = str(tmpdir.join("test.tif"))
      result = runner.invoke(
          main_group, ["warp", srcname, outputname, "--like", likename]
      )
      assert result.exit_code == 0
      assert os.path.exists(outputname)
  
      with rasterio.open(outputname) as output:
          assert output.crs == {"init": "epsg:4326"}
          assert np.allclose(
              [0.001, 0.001], [output.transform.a, -output.transform.e]
          )
          assert output.width == 10
          assert output.height == 10
  
imports: import os
  import affine
  import numpy
  import pytest
  import rasterio
  from rasterio.warp import SUPPORTED_RESAMPLING
  from rasterio.rio import warp
  from rasterio.rio.main import main_group
label_desc: Use image node_id 27 for calling a global function with example usage: test_warp_reproject_like(runner, tmpdir) without return types