def verify_all(df, check, *args, **kwargs):
    """
    Verify that all the entries in ``check(df, *args, **kwargs)``
    are true.
    """
    result = check(df, *args, **kwargs)
    try:
        assert np.all(result)
    except __HOLE__ as e:
        msg = "{} not true for all".format(check.__name__)
        e.args = (msg, df[~result])
        raise
    return df
dataset/ETHPy150Open TomAugspurger/engarde/engarde/generic.py/verify_all