def METHOD_NAME(self):
    if not (self._left_context >= 0 and self._right_context >= 0
            and self._input_period > 0 and self._stats_period > 0
            and self._left_context % self._stats_period == 0
            and self._right_context % self._stats_period == 0
            and self._stats_period % self._input_period == 0):
        raise RuntimeError(
            "Invalid configuration of statistics-extraction: {0}".format(
                self.config['config']), self)
    super(XconfigStatsLayer, self).METHOD_NAME()