def METHOD_NAME():
    def column_mean_validation_function(data):
        return (data.mean() == 1, {})
    df = DataFrame(
        {
            "foo": [1, 2],
            "bar": [1, 1],
        }
    )
    aggregate_val = ColumnAggregateConstraintWithMetadata(
        "Confirms column means equal to 1",
        column_mean_validation_function,
        ConstraintWithMetadataException,
        raise_or_typecheck=False,
    )
    val = aggregate_val.validate(df, *df.columns).metadata[CONSTRAINT_METADATA_KEY].data
    assert ["foo"] == val["offending"]
    assert [1, 2] == val["actual"]["foo"]