def get_id(self, version: int) -> str:
    if (self.is_anon() and (version < 3)):
        raise NoOldIdError()
    if (version == 1):
        if (self.identifier == 'size_t'):
            return 's'
        else:
            return self.identifier
    if (self.identifier == 'std'):
        return 'St'
    elif (self.identifier[0] == '~'):
        return 'D0'
    elif self.is_anon():
        return ('Ut%d_%s' % ((len(self.identifier) - 1), self.identifier[1:]))
    else:
        return (str(len(self.identifier)) + self.identifier)
def get_id(self, version: int) -> str:
    if (self.is_anon() and (version < 3)):
        raise NoOldIdError()
    if (version == 1):
        if (self.identifier == 'size_t'):
            return 's'
        else:
            return self.identifier
    if (self.identifier == 'std'):
        return 'St'
    elif (self.identifier[0] == '~'):
        return 'D0'
    elif self.is_anon():
        return ('Ut%d_%s' % ((len(self.identifier) - 1), self.identifier[1:]))
    else:
        return (str(len(self.identifier)) + self.identifier)