code: def test_warp_no_reproject_src_bounds_dimensions(runner, tmpdir):
      """--src-bounds option works with dimensions"""
      srcname = "tests/data/shade.tif"
      outputname = str(tmpdir.join("test.tif"))
      out_bounds = [-11850000, 4810000, -11849000, 4812000]
      result = runner.invoke(
          main_group,
          [
              "warp",
              srcname,
              outputname,
              "--dimensions",
              9,
              14,
              "--src-bounds",
          ]
          + out_bounds,
      )
      assert result.exit_code == 0
      assert os.path.exists(outputname)
  
      with rasterio.open(srcname) as src:
          with rasterio.open(outputname) as output:
              assert output.crs == src.crs
              assert np.allclose(output.bounds, out_bounds)
              assert np.allclose(
                  [111.111111, 142.857142],
                  [output.transform.a, -output.transform.e],
              )
              assert output.width == 9
              assert output.height == 14
  
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 15 for calling a global function with example usage: test_warp_no_reproject_src_bounds_dimensions(runner, tmpdir) without return types