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