def check_pred_all(lf_graphs: list, mode: str) -> list:
    """ Check predicates on a list of logical forms.
    Filter out nonconforming logical forms.

    Parameter:
    lf_graphs (list): logical forms
    mode (str): name of check mode, valid options: rules, order

    Returns:
    a list of logical forms that conform with the predicate orders
    from lf_graphs

    """
    try:
        check_func = globals()[f'check_pred_{mode}']
    except KeyError:
        raise ValueError(f'Invalid predicate checker mode: {mode}')
    return [lf for lf in lf_graphs if check_func(lf) is True]