Make Static Mesh in Python

Hey,

I’m looking to convert an Anim Sequence to a Static Mesh through python. There’s a button in the anim sequence called “Make Static Mesh” but I don’t see how to do it through scripting.

Is it possible?
Thanks

Do you have solved the problem? I also face the same problem.