Create a Jython file containing the code. The Jython file is available from the module for execution and it is available for user from the macro catalog after the module deployment.

image