code: def test_rasterize_like_raster(
      tmpdir,
      runner,
      basic_feature,
      basic_image_2x2,
      pixelated_image_file,
  ):
      output = str(tmpdir.join("test.tif"))
  
      result = runner.invoke(
          main_group,
          ["rasterize", output, "--like", pixelated_image_file],
          input=json.dumps(basic_feature),
      )
  
      assert result.exit_code == 0
      assert os.path.exists(output)
      with rasterio.open(output) as out:
          assert np.array_equal(
              basic_image_2x2, out.read(1, masked=False)
          )
  
          with rasterio.open(pixelated_image_file) as src:
              assert out.crs == src.crs
              assert out.bounds == src.bounds
              assert out.transform == src.transform
  
imports: import json
  import os
  import numpy
  import rasterio
  from rasterio.rio.main import main_group
label_desc: Use image node_id 11 for calling a global function with example usage: test_rasterize_like_raster(tmpdir, runner, basic_feature, basic_image_2x2, pixelated_image_file) without return types