@staticmethod
def _get_cov_thresh_dict(cov_thresh, protected_attribute_names):
    """Return dict with covariance thresh for each attribute and error type

        The dict has the form:

            {"sensitive_attribute_name_1":{ 0:{0:cov_thresh, 1:cov_thresh},
                                            1:{0:cov_thresh, 1:cov_thresh},
                                            2:{0:cov_thresh, 1:cov_thresh}},
            "sensitive_attribute_name_2":{  0:{0:cov_thresh, 1:cov_thresh},
                                            1:{0:cov_thresh, 1:cov_thresh},
                                            2:{0:cov_thresh, 1:cov_thresh}},
                ...
            }

        Args:
            cov_thresh (float): covariance threshold (same for each attribute)
            protected_attribute_names (list): list of protected attributes

        Returns:
            sensitive_attrs_to_cov_thresh (dict):
        """
    sensitive_attrs_to_cov_thresh = {}
    for sens_attr_name in protected_attribute_names:
        sensitive_attrs_to_cov_thresh[sens_attr_name] = {(0): {(0):
            cov_thresh, (1): cov_thresh}, (1): {(0): cov_thresh, (1):
            cov_thresh}, (2): {(0): cov_thresh, (1): cov_thresh}}
    return sensitive_attrs_to_cov_thresh
