code: def test_mask_all_touched(
      runner, tmpdir, basic_feature, basic_image, pixelated_image_file
  ):
      output = str(tmpdir.join("test.tif"))
  
      result = runner.invoke(
          main_group,
          [
              "mask",
              pixelated_image_file,
              output,
              "--all",
              "--geojson-mask",
              "-",
          ],
          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, 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 2 for calling a global function with example usage: test_mask_all_touched(runner, tmpdir, basic_feature, basic_image, pixelated_image_file) without return types