Created by: lixiangchun
https://github.com/PaddlePaddle/models/blob/eb1fbf5cd847521a030ad97f0152e9a142803a8a/PaddleCV/image_classification/utils/learning_rate.py#L57
should read as:
with fluid.layers.control_flow.Switch() as switch: