How can I make a function available to the ScriptModule?

I created a function in the script editor which I need to execute in the softrender section of the scriptmodule. How can I execute it?.

I can see that the RenderMayaBatch Node is able to call a fucntion within the very same place, so I guess it might be possible…