code: def test_write_colormap_warn(tmpdir, recwarn):
      with rasterio.open("tests/data/shade.tif") as src:
          profile = src.meta
      tiffname = str(tmpdir.join("foo.tif"))
      with rasterio.open(tiffname, "w", **profile) as dst:
          dst.write_colormap(
              1, {0: (255, 0, 0, 255), 255: (0, 0, 0, 0)}
          )
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_write_colormap_warn(tmpdir, recwarn) without return types