def METHOD_NAME(self):
    # Inserts StatsAnalyzer if it's needed because a RasterSource has a
    # StatsTransformer, but there isn't a StatsAnalyzer in the list of Analyzers.
    has_stats_transformer = False
    for s in self.dataset.all_scenes:
        for t in s.raster_source.transformers:
            if isinstance(t, StatsTransformerConfig):
                has_stats_transformer = True
    has_stats_analyzer = False
    for a in self.analyzers:
        if isinstance(a, StatsAnalyzerConfig):
            has_stats_analyzer = True
            break
    if has_stats_transformer and not has_stats_analyzer:
        self.analyzers.append(StatsAnalyzerConfig())