How do you switch to unreal Editor mode using python code?

Hi guys, help me!
How do you switch to unreal Editor mode using python code?
image