Created by: chenwhql
as title.
keep consistent with en doc samle code.
en doc: https://github.com/PaddlePaddle/Paddle/pull/23653