Add validation functions for the input tests of clustered linear and logistic
to avoid failures caused by the change of the python file