def _validate(self, sam_template):
if "<STR_LIT>" not in sam_template or not isinstance(sam_template["<STR_LIT>"], dict)or not sam_template["<STR_LIT>"]:<EOL><INDENT>raise InvalidDocumentException(<EOL>[InvalidTemplateException("<STR_LIT>")])<EOL><DEDENT>SamTemplateValidator.validate(sam_template)<EOL>
Validates the template and parameter values and raises exceptions if there's an issue

        :param dict sam_template: SAM template