class_docstr: Writer to produce MITIFF image files.
docstr: Replace mitiff ext because pillow doesn't recognise the file type.
docstr_tok: ["Replace","mitiff","ext","because","pillow","does","n't","recognise","the","file","type","."]
code: def _generate_intermediate_filename(self, gen_filename):
      """Replace mitiff ext because pillow doesn't recognise the file type."""
      bs, ex = os.path.splitext(gen_filename)
      tmp_gen_filename = gen_filename
      if ex.endswith("mitiff"):
          bd = os.path.dirname(bs)
          bn = os.path.basename(bs)
          tmp_gen_filename = os.path.join(bd, "." + bn + ".tif")
      return tmp_gen_filename
  
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 25 for calling the MITIFFWriter obj's underlying member method code with example usage: obj._generate_intermediate_filename(gen_filename) and returns: tmp_gen_filename