class_docstr: Test the Scene's saving method.
class_docstr_tok: ["Test","the","Scene","'s","saving","method","."]
docstr: Save a dataset using 'save_datasets'.
docstr_tok: ["Save","a","dataset","using","'save_datasets","'","."]
code: def test_save_datasets_default(self, tmp_path):
      """Save a dataset using 'save_datasets'."""
      ds1 = xr.DataArray(
          da.zeros((100, 200), chunks=50),
          dims=("y", "x"),
          attrs={
              "name": "test",
              "start_time": datetime(2018, 1, 1, 0, 0, 0),
          },
      )
      scn = Scene()
      scn["test"] = ds1
      scn.save_datasets(base_dir=tmp_path)
      assert os.path.isfile(
          os.path.join(tmp_path, "test_20180101_000000.tif")
      )
  
file_path: satpy/satpy/tests/scene_tests/test_saving.py
imports: import os
  from datetime import datetime
  from unittest import mock
  import pytest
  import xarray
  from dask import array
  from satpy import Scene
  from satpy.tests.utils import make_cid, spy_decorator
label_desc: Use image node_id 1 for calling the TestSceneSaving obj's underlying member method code with example usage: obj.test_save_datasets_default(tmp_path) without return types