class_docstr: Writer to produce MITIFF image files.
code: def _add_calibration_datasets(
      self, ch, datasets, reverse_offset, reverse_scale, decimals
  ):
      _reverse_offset = reverse_offset
      _reverse_scale = reverse_scale
      _decimals = decimals
      _table_calibration = ""
      found_calibration = False
      skip_calibration = False
      ds_list = datasets
      if (
          not isinstance(datasets, list)
          and "bands" not in datasets.sizes
      ):
          ds_list = [datasets]
  
      for i, ds in enumerate(ds_list):
          if (
              "prerequisites" in ds.attrs
              and isinstance(ds.attrs["prerequisites"], list)
              and len(ds.attrs["prerequisites"]) >= i + 1
              and isinstance(
                  ds.attrs["prerequisites"][i], (DataQuery, DataID)
              )
          ):
              if ds.attrs["prerequisites"][i].get("name") == str(ch):
                  if (
                      ds.attrs["prerequisites"][i].get("calibration")
                      == "RADIANCE"
                  ):
                      raise NotImplementedError(
                          "Mitiff radiance calibration not implemented."
                      )
                  # _table_calibration += ', Radiance, '
                  # _table_calibration += '[W/m²/µm/sr]'
                  # _decimals = 8
                  elif (
                      ds.attrs["prerequisites"][i].get("calibration")
                      == "brightness_temperature"
                  ):
                      found_calibration = True
                      _table_calibration += ", BT, "
                      _table_calibration += "\N{DEGREE SIGN}"
                      _table_calibration += "[C]"
  
                      _reverse_offset = 255.0
                      _reverse_scale = -1.0
                      _decimals = 2
                  elif (
                      ds.attrs["prerequisites"][i].get("calibration")
                      == "reflectance"
                  ):
                      found_calibration = True
                      _table_calibration += ", Reflectance(Albedo), "
                      _table_calibration += "[%]"
                      _decimals = 2
                  else:
                      LOG.warning(
                          "Unknown calib type. Must be Radiance, Reflectance or BT."
                      )
  
                      break
              else:
                  continue
          else:
              _table_calibration = ""
              skip_calibration = True
              break
      if not found_calibration:
          _table_calibration = ""
          skip_calibration = True
          # How to format string by passing the format
          # http://stackoverflow.com/questions/1598579/rounding-decimals-with-new-python-format-function
      return (
          skip_calibration,
          _table_calibration,
          _reverse_offset,
          _reverse_scale,
          _decimals,
      )
  
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 16 for calling the MITIFFWriter obj's underlying member method code with example usage: obj._add_calibration_datasets(ch, datasets, reverse_offset, reverse_scale, decimals) and returns: skip_calibration,  _table_calibration,  _reverse_offset,  _reverse_scale,  _decimals