DOC: Add docstring for validate_model.