def METHOD_NAME():
    for nullable in NAN_VALUES:
        test_dataframe = DataFrame({"foo": ["red", "blue", "green", nullable]})
        assert (
            CategoricalColumnConstraint(
                {"red", "blue", "green"}, ignore_missing_vals=True
            ).validate(test_dataframe, "foo")
            is None
        )
        test_dataframe = DataFrame({"foo": ["red", "yellow", "green", nullable, nullable]})
        with pytest.raises(ConstraintViolationException):
            CategoricalColumnConstraint(
                {"red", "blue", "green"}, ignore_missing_vals=True
            ).validate(test_dataframe, "foo")