def validate(self, ml_template):
data = {<EOL>"<STR_LIT>":<EOL>ml_template<EOL>}<EOL>failure_message = "<STR_LIT>"<EOL>res = self._get_success_json(self._post_json(<EOL>'<STR_LIT>', data, failure_message=failure_message))['<STR_LIT:data>']<EOL>if res['<STR_LIT>']:<EOL><INDENT>return '<STR_LIT:OK>'<EOL><DEDENT>return res['<STR_LIT>']<EOL>
Runs the template against the validation endpoint, returns a message indicating status of the templte

:param ml_template: Template to validate
:return: OK or error message if validation failed