def CheckFailures(df, failures):
    """
    Given a DataFrame and boolean list of failures, return whether test passed
    and print examples of any failures.
    """
    if failures.sum() != 0:
        print((df[failures].head()))
        return False
    return True