code: def test_write(tmpdir):
      name = str(tmpdir.join("test.png"))
      with rasterio.open("tests/data/RGB.byte.tif") as src:
          kwargs = src.meta.copy()
          del kwargs["transform"]
          del kwargs["crs"]
          kwargs["driver"] = "PNG"
          with rasterio.open(name, "w", **kwargs) as dst:
              dst.write(src.read())
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_write(tmpdir) without return types