code: def test_mask_out_of_bounds(
      runner, tmpdir, basic_feature, pixelated_image_file
  ):
      """
      A GeoJSON mask that is outside bounds of raster should result in a
      blank image.
      """
  
      coords = np.array(basic_feature["geometry"]["coordinates"]) - 10
      basic_feature["geometry"]["coordinates"] = coords.tolist()
  
      output = str(tmpdir.join("test.tif"))
  
      with pytest.warns(UserWarning) as rec:
          result = runner.invoke(
              main_group,
              [
                  "mask",
                  pixelated_image_file,
                  output,
                  "--geojson-mask",
                  "-",
              ],
              input=json.dumps(basic_feature),
          )
      assert result.exit_code == 0
      assert os.path.exists(output)
  
      with rasterio.open(output) as out:
          assert not np.any(out.read(1, masked=True).filled(0))
  
file_path: rasterio/tests/test_rio_mask.py
imports: import json
  import os
  import numpy
  import pytest
  import rasterio
  from rasterio.rio.main import main_group
label_desc: Use image node_id 5 for calling a global function with example usage: test_mask_out_of_bounds(runner, tmpdir, basic_feature, pixelated_image_file) without return types