class_docstr: Test the MITIFF Writer class.
docstr: Test writer operation with bad values.
docstr_tok: ["Test","writer","operation","with","bad","values","."]
code: def test_save_dataset_with_bad_value(self):
      """Test writer operation with bad values."""
      from satpy.writers.mitiff import MITIFFWriter
  
      _expected = np.array(
          [[0, 4, 1, 37, 73], [110, 146, 183, 219, 255]]
      )
      expected = [_expected, _expected, _expected]
      dataset = self._get_test_dataset_with_bad_values()
      w = MITIFFWriter(base_dir=self.base_dir)
      w.save_dataset(dataset)
      filename = "{:s}_{:%Y%m%d_%H%M%S}.mitiff".format(
          dataset.attrs["name"], dataset.attrs["start_time"]
      )
      self._read_back_mitiff_and_check(
          os.path.join(self.base_dir, filename),
          expected,
          test_shape=(2, 5),
      )
  
imports: import logging
  import os
  import unittest
  import numpy
  from PIL import Image
label_desc: Use image node_id 23 for calling the TestMITIFFWriter obj's underlying member method code with example usage: obj.test_save_dataset_with_bad_value() without return types