* add static_only for static api
* addd static_only for class init
* remove static_only for default_main_program
* remove creater_parameter & startup_program
* remove failed apis
* revert py_func import
* remove global scope
* remove some api
* remove cuda pinned place
),"We only support'%s()' in static graph mode, please call 'paddle.enable_static()' to enter static graph mode."%func.__name__
),"In PaddlePaddle 2.x, we turn on dynamic graph mode by default, and'%s()' is only supported in static graph mode. So if you want to use this api, please call 'paddle.enable_static()' before this api to enter static graph mode."%func.__name__