class_docstr: Test the GeoTIFF Writer class.
class_docstr_tok: ["Test","the","GeoTIFF","Writer","class","."]
docstr: Test that dtype of dataset is used if parameters enhance=False and dtype=None.
docstr_tok: ["Test","that","dtype","of","dataset","is","used","if","parameters","enhance=False","and","dtype=None","."]
code: def test_dtype_for_enhance_false(self, tmp_path):
      """Test that dtype of dataset is used if parameters enhance=False and dtype=None."""
      from satpy.writers.geotiff import GeoTIFFWriter
  
      datasets = _get_test_datasets_2d()
      w = GeoTIFFWriter(base_dir=tmp_path, enhance=False)
      with mock.patch("satpy.writers.XRImage.save") as save_method:
          save_method.return_value = None
          w.save_datasets(datasets, compute=False)
          assert save_method.call_args[1]["dtype"] == np.float64
  
imports: from datetime import datetime
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  import xarray
label_desc: Use image node_id 6 for calling the TestGeoTIFFWriter obj's underlying member method code with example usage: obj.test_dtype_for_enhance_false(tmp_path) without return types