class_docstr: Writer to produce MITIFF image files.
docstr: Save single dataset as mitiff file.
docstr_tok: ["Save","single","dataset","as","mitiff","file","."]
code: def save_dataset(
      self,
      dataset,
      filename=None,
      fill_value=None,
      compute=True,
      **kwargs,
  ):
      """Save single dataset as mitiff file."""
      LOG.debug("Starting in mitiff save_dataset ... ")
  
      def _delayed_create(dataset):
          try:
              if "palette" in kwargs:
                  self.palette = kwargs["palette"]
              _adjust_kwargs(dataset, kwargs)
  
              try:
                  self.mitiff_config[kwargs["sensor"]] = dataset.attrs[
                      "metadata_requirements"
                  ]["config"]
                  self.channel_order[kwargs["sensor"]] = dataset.attrs[
                      "metadata_requirements"
                  ]["order"]
                  self.file_pattern = dataset.attrs[
                      "metadata_requirements"
                  ]["file_pattern"]
              except KeyError:
                  # For some mitiff products this info is needed, for others not.
                  # If needed you should know how to fix this
                  pass
  
              try:
                  self.translate_channel_name[
                      kwargs["sensor"]
                  ] = dataset.attrs["metadata_requirements"][
                      "translate"
                  ]
              except KeyError:
                  # For some mitiff products this info is needed, for others not.
                  # If needed you should know how to fix this
                  pass
  
              image_description = self._make_image_description(
                  dataset, **kwargs
              )
              gen_filename = filename or self.get_filename(
                  **dataset.attrs
              )
              LOG.info("Saving mitiff to: %s ...", gen_filename)
              self._save_datasets_as_mitiff(
                  dataset, image_description, gen_filename, **kwargs
              )
          except (KeyError, ValueError, RuntimeError):
              raise
  
      delayed = dask.delayed(_delayed_create)(dataset)
  
      if compute:
          return delayed.compute()
      return delayed
  
imports: import logging
  import os
  import dask
  import numpy
  from PIL import Image, ImagePalette
  from satpy.dataset import DataID, DataQuery
  from satpy.writers import ImageWriter, get_enhanced_image
label_desc: Use image node_id 3 for calling the MITIFFWriter obj's underlying member method code with example usage: obj.save_dataset(dataset, filename, fill_value, compute) and returns: delayed, delayed