def get_id(self, version: int) -> str:
    if (version == 1):
        res = []
        for a in self.name.split(' '):
            if (a in _id_fundamental_v1):
                res.append(_id_fundamental_v1[a])
            else:
                res.append(a)
        return '-'.join(res)
    if (self.name not in _id_fundamental_v2):
        raise Exception(('Semi-internal error: Fundamental type "%s" can not be mapped to an id. Is it a true fundamental type? If not so, the parser should have rejected it.' % self.name))
    return _id_fundamental_v2[self.name]
def get_id(self, version: int) -> str:
    if (version == 1):
        res = []
        for a in self.name.split(' '):
            if (a in _id_fundamental_v1):
                res.append(_id_fundamental_v1[a])
            else:
                res.append(a)
        return '-'.join(res)
    if (self.name not in _id_fundamental_v2):
        raise Exception(('Semi-internal error: Fundamental type "%s" can not be mapped to an id. Is it a true fundamental type? If not so, the parser should have rejected it.' % self.name))
    return _id_fundamental_v2[self.name]