def apply_label(row, labels, is_fabs):
    """ Get special rule labels for required or type checks for FABS submissions.

        Args:
            row: the dataframe row to get the label for
            labels: the list of labels that could be applied in this rule
            is_fabs: a boolean indicating if the submission is a FABS submission or not

        Returns:
            The label if it's a FABS submission and the header matches one of the ones there are labels for, empty
            string otherwise
    """
    if is_fabs and labels and row['Field Name'] in labels:
        return labels[row['Field Name']]
    return ''