<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check_retcode(self, line):
 """ Look for retcode on line line and return return code if found. :param line: Line to search from :return: integer return code or -1 if "cmd tasklet init" is found. None if retcode or cmd tasklet init not found. """

        retcode = None
        match = re.search(r"retcode\: ([-\d]{1,})", line)
        if match:
            retcode = num(str(match.group(1)))

        match = re.search("cmd tasklet init", line)
        if match:
            self.logger.debug("Device Boot up", extra={'type': '   '})
            return -1
        return retcode