class_docstr: Writer to produce MITIFF image files.
code: def _reorder_channels(self, datasets, **kwargs):
      channels = []
      for cn in self.channel_order[kwargs["sensor"]]:
          for ch, ds in enumerate(datasets):
              if isinstance(
                  ds.attrs["prerequisites"][ch], (DataQuery, DataID)
              ):
                  if ds.attrs["prerequisites"][ch]["name"] == cn:
                      channels.append(
                          ds.attrs["prerequisites"][ch]["name"]
                      )
                      break
              else:
                  if ds.attrs["prerequisites"][ch] == cn:
                      channels.append(ds.attrs["prerequisites"][ch])
                      break
      return channels
  
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 6 for calling the MITIFFWriter obj's underlying member method code with example usage: obj._reorder_channels(datasets) and returns: channels