code: def validate(self, ml_template):
          
  
          data = {
              "ml_template":
                  ml_template
          }
  
          failure_message = "ML template validation invoke failed"
  
          res = self._get_success_json(self._post_json(
              'ml_templates/validate', data, failure_message=failure_message))['data']
          if res['valid']:
              return 'OK'
          return res['reason']
docs: 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