[imp]:convert yml to python test case

[imp]:improve code

[imp]:improve code
[imp]:improve code