code: def test_set_units_error(tmpdir, value):
      """Number of values must match band count"""
      tmptiff = str(tmpdir.join("test.tif"))
      with rasterio.open(
          tmptiff,
          "w",
          count=2,
          height=256,
          width=256,
          **default_gtiff_profile,
      ) as dst:
          with pytest.raises(ValueError):
              dst.units = value
  
imports: import pytest
  import rasterio
  from rasterio.profiles import default_gtiff_profile
label_desc: Use image node_id 2 for calling a global function with example usage: test_set_units_error(tmpdir, value) without return types