def do_validate(self, args):
        try:
            #add arguments
            doParser = self.arg_validate()
            try:
                doArgs = doParser.parse_args(args.split())
            except __HOLE__ as e:
                return
            file = generics_utils.get_file(doArgs.file)
            if file is None:
                return 2
            template=generics_utils.validate_json_file(file)
            if template is None:
                return 2
            return 0
        except ArgumentParserError as e:
            printer.out("ERROR: In Arguments: "+str(e), printer.ERROR)
            self.help_validate()
dataset/ETHPy150Open usharesoft/hammr/src/hammr/commands/template/template.py/Template.do_validate