def get_supported_versions(self):
if not hasattr(self, '<STR_LIT>'):<EOL><INDENT>try:<EOL><INDENT>self._versions = [self.send_apdu(INS_GET_VERSION).decode()]<EOL><DEDENT>except exc.APDUError as e:<EOL><INDENT>self._versions = ['<STR_LIT>'] if e.code == <NUM_LIT> else []<EOL><DEDENT><DEDENT>return self._versions<EOL>
Gets a list of supported U2F versions from the device.