def METHOD_NAME(name):
    prefix = _IDENTITY_NS + _ROLE_NS
    parts = name.split(".", maxsplit=_NUM_PARTS - 1)
    hashed_parts = [
        _short_hash(d.encode()) if i != 0 else _short_hash(d.encode(), 14)
        for i, d in enumerate(parts)
    ]
    hashed_parts.extend([_NULL_HASH] * (_NUM_PARTS - len(parts)))
    return prefix + "".join(hashed_parts)