code: def _get_band_indexes(self, indexes=None):
          
          if indexes:
              if isinstance(indexes, list):
                  return indexes
              else:
                  return [indexes]
          else:
              return range(1, self.process.config.output.profile(self.tile)["count"] + 1)
docs: Return valid band indexes.