def METHOD_NAME(cls, filters):
    if not isinstance(filters, list):
        config.error(f'{cls.__name__}: The filters argument must be a list of tuples')
    for filter in filters:
        if not isinstance(filter, tuple) or \
                len(filter) != 3 or \
                not isinstance(filter[2], SourceStampFilter):
            config.error(('{}: The filters argument must be a list of tuples each of which ' +
                          'contains builders to track as the first item, builders to cancel ' +
                          'as the second and SourceStampFilter as the third'
                          ).format(cls.__name__))
        builders, builders_to_cancel, _ = filter
        try:
            extract_filter_values(builders, 'builders')
            if builders_to_cancel is not None:
                extract_filter_values(builders_to_cancel, 'builders_to_cancel')
        except Exception as e:
            config.error(f'{cls.__name__}: When processing filter builders: {str(e)}')