def METHOD_NAME(self, hint: str = '') -> str:
    if not hint:
        hint = 'v'
    m = re.search(r'~\d+$', hint)
    if m:
        hint = hint[:m.start()]
    idx = self.nextval(hint)
    alias = f'{hint}~{idx}'
    return alias