Call a custom node within Python script

Hello Everyone,

I created a custom node to use it as a function within a python script node.
Is it possible to do that as I get NameError, my function not defined