def check(self):
result = True<EOL>self.testcases,invalid_cases = self.getYamlCasesValue()<EOL>if invalid_cases:<EOL><INDENT>print("<STR_LIT>")<EOL>for k,v in invalid_cases.items():<EOL><INDENT>print("<STR_LIT>" %(k, v))<EOL><DEDENT>result = False<EOL><DEDENT>elif not self.testcases:<EOL><INDENT>print('<STR_LIT>')<EOL>result = False<EOL><DEDENT>return result<EOL>
usage:
            print(YamlModel(r"D:\auto\buffer\test.yaml").check()    )
        :return Ture/False