def repl(match: re.Match) -> str:
    type = match[1]
    id = int(match[2])
    transformed = transforms[type](id)
    return transformed
def repl(match: re.Match) -> str:
    type = match[1]
    id = int(match[2])
    transformed = transforms[type](id)
    return transformed