GH-100479: Add pathlib.PurePath.with_segments()
#103975
Merged
pathlib.PurePath.with_segments()
#103975