class_docstr: Test the Scene's saving method.
class_docstr_tok: ["Test","the","Scene","'s","saving","method","."]
docstr: Save a dataset using 'save_datasets' and a bad writer.
docstr_tok: ["Save","a","dataset","using","'save_datasets","'","and","a","bad","writer","."]
code: def test_save_datasets_bad_writer(self, tmp_path):
      """Save a dataset using 'save_datasets' and a bad writer."""
      ds1 = xr.DataArray(
          da.zeros((100, 200), chunks=50),
          dims=("y", "x"),
          attrs={"name": "test", "start_time": datetime.utcnow()},
      )
      scn = Scene()
      scn["test"] = ds1
      pytest.raises(
          ValueError,
          scn.save_datasets,
          writer="_bad_writer_",
          base_dir=tmp_path,
          match="Unknown writer '_bad_writer_'",
      )
  
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 3 for calling the TestSceneSaving obj's underlying member method code with example usage: obj.test_save_datasets_bad_writer(tmp_path) without return types