How to use nipype to do peri-stimulus analysis?

I use the nipype which call SPM to do fMRI analysis.
Now, I need plot peri-stimulus. But I can not find any tutorial of nipype about this.

If you have experience about this and help me, I will very appreciate it!