def METHOD_NAME(self, threshold: float = 0.9, n_pairs: int = 0):
    """Add condition that all pairwise correlations are less than threshold, except for the diagonal."""
    def condition(result):
        results_ge = result[result > threshold].stack().index.to_list()
        high_corr_pairs = [(i, j) for (i, j) in results_ge if i < j]  # remove diagonal and duplicate pairs
        if len(high_corr_pairs) > n_pairs:
            return ConditionResult(ConditionCategory.FAIL,
                                   f'Correlation is greater than {threshold} for pairs {high_corr_pairs}')
        else:
            return ConditionResult(ConditionCategory.PASS,
                                   f'All correlations are less than {threshold} except pairs {high_corr_pairs}')
    return self.add_condition(f'Not more than {n_pairs} pairs are correlated above {threshold}', condition)