def METHOD_NAME():
    parser = arg_parser()
    args = parser.parse_args()
    assert args.model_dir is not None, "--model_dir should be defined while exporting openvino model"
    assert args.save_dir is not None, "--save_dir should be defined to create openvino model"
    model = pdx.load_model(args.model_dir)
    if model.status == "Normal" or model.status == "Prune":
        print(
            "Only support inference model, try to export inference model first as below,"
        )
        print(
            "see https://github.com/PaddlePaddle/PaddleX/blob/develop/docs/deploy/openvino/faq.md"
        )
    else:
        prog = model.test_prog
        for var in prog.list_vars():
            if var.name == "image":
                shape = list(var.shape)
                if shape[2] == -1 and shape[3] == -1:
                    print(
                        "convert failed, please export paddle inference model by fixed_input_shape"
                    )
                    print(
                        "see https://github.com/PaddlePaddle/PaddleX/blob/develop/docs/deploy/openvino/faq.md"
                    )
                else:
                    export_openvino_model(model, args)