class_docstr: Test the GeoTIFF Writer class.
class_docstr_tok: ["Test","the","GeoTIFF","Writer","class","."]
docstr: Test that geotiffs can be written as floats.
  
  NOTE: Does not actually check that the output is floats.
docstr_tok: ["Test","that","geotiffs","can","be","written","as","floats",".","NOTE",":","Does","not","actually","check","that","the","output","is","floats","."]
code: def test_float_write(self, tmp_path):
      """Test that geotiffs can be written as floats.
  
      NOTE: Does not actually check that the output is floats.
  
      """
      from satpy.writers.geotiff import GeoTIFFWriter
  
      datasets = _get_test_datasets_2d()
      w = GeoTIFFWriter(
          base_dir=tmp_path, enhance=False, dtype=np.float32
      )
      w.save_datasets(datasets)
  
imports: from datetime import datetime
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  import xarray
label_desc: Use image node_id 5 for calling the TestGeoTIFFWriter obj's underlying member method code with example usage: obj.test_float_write(tmp_path) without return types