code: def check_retcode(self, line):
          
          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
docs: 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.