New to fMRIprep

Hey,

Can you help me rewrite this script? Like how would you write it?