def _encode_identifier(v: int) ->str:
    """Encode identifer value into base-94 string."""
    assert v > 0, 'identifier codes must be > 0'
    encoded = ''
    while v != 0:
        v -= 1
        encoded += chr(v % 94 + 33)
        v //= 94
    return encoded
