FR - Add function calling to Python Code Blocks in Workflows

If I have an existing Python code block, then I create a function and try to use this function in Python it says "function2" is not defined:

However, if I make a new code block and copy/paste the contents of the old one into the new one it no longer throws this error:

I just realized calling functions from python doesn't work in general:

I guess this is actually a FR to add function calling to Python code blocks? .... I updated the topic and category XD