def get_version(self):
raw_version = run_cmd(["<STR_LIT>", "<STR_LIT:version>"], return_output=True)<EOL>regex = re.compile(r"<STR_LIT>")<EOL>match = regex.findall(raw_version)<EOL>try:<EOL><INDENT>return match[<NUM_LIT:0>]<EOL><DEDENT>except IndexError:<EOL><INDENT>logger.error("<STR_LIT>")<EOL>return<EOL><DEDENT>
return 3-tuple of version info or None

:return: (str, str, str)