code: def test_dataset_features_tool(tmpdir, path_rgb_byte_tif):
      """Example tool works"""
      features_file = tmpdir.join("footprint.jsons")
  
      tools.dataset_features_tool(
          path_rgb_byte_tif,
          str(features_file),
          func_kwargs=dict(bidx=1, as_mask=True),
      )
  
      assert features_file.read().count("Feature") == 9
  
imports: from functools import partial
  from rasterio.features import dataset_features
  from rasterio import tools
label_desc: Use image node_id 1 for calling a global function with example usage: test_dataset_features_tool(tmpdir, path_rgb_byte_tif) without return types