A minor fix that corrects the code snippets. Porting: https://github.com/openvinotoolkit/openvino/pull/13341