Convert to spawnable with python

I’m a bit new to python in unreal engine, can you give me an example on how to do this in code?