def get_special_case_tol(dataset, tree_type, method, default_tol=1e-5):
    """
    Special cases for `leaf_inf` and `leaf_refit`.

    Input
        dataset: str, dataset.
        tree_type: str, tree-ensemble model.
        method: str, explainer.
        default_tol: float, original tolerance.

    Return
        - Tolerance (float).
    """
    tol = default_tol

    if method in ['leaf_inf', 'leaf_refit', 'leaf_infLE', 'leaf_refitLE']:

        if tree_type == 'lgb' and dataset == 'flight_delays':
            tol = 1e-1

        elif tree_type == 'cb':

            if dataset == 'bean':
                tol = 0.5

            elif dataset == 'naval':
                tol = 1e-4

    return tol