[TASK] Update code segments in documentation