code: def test_set_units(tmpdir):
      """Units can be set when dataset is open"""
      tmptiff = str(tmpdir.join("test.tif"))
      with rasterio.open(
          tmptiff,
          "w",
          count=3,
          height=256,
          width=256,
          **default_gtiff_profile,
      ) as dst:
          assert dst.units == (None, None, None)
          dst.units = ["meters", "degC", None]
          assert dst.units == ("meters", "degC", None)
  
imports: import pytest
  import rasterio
  from rasterio.profiles import default_gtiff_profile
label_desc: Use image node_id 1 for calling a global function with example usage: test_set_units(tmpdir) without return types