class_docstr: Test the GeoTIFF Writer class.
class_docstr_tok: ["Test","the","GeoTIFF","Writer","class","."]
docstr: Test tags being added.
docstr_tok: ["Test","tags","being","added","."]
code: def test_scale_offset(self, input_func, save_kwargs, tmp_path):
      """Test tags being added."""
      from satpy.writers.geotiff import GeoTIFFWriter
  
      datasets = input_func()
      w = GeoTIFFWriter(tags={"test1": 1}, base_dir=tmp_path)
      w.info["fill_value"] = 128
      with mock.patch("satpy.writers.XRImage.save") as save_method:
          save_method.return_value = None
          w.save_datasets(
              datasets, tags={"test2": 2}, compute=False, **save_kwargs
          )
      kwarg_name = (
          "include_scale_offset_tags"
          if "include_scale_offset" in save_kwargs
          else "scale_offset_tags"
      )
      kwarg_value = save_method.call_args[1].get(kwarg_name)
      assert kwarg_value is not None
  
imports: from datetime import datetime
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  import xarray
label_desc: Use image node_id 10 for calling the TestGeoTIFFWriter obj's underlying member method code with example usage: obj.test_scale_offset(input_func, save_kwargs, tmp_path) without return types