How can I make rasa run my local codes?

So, I am a beginner to rasa, I just studied the custom actions and custom forms on the Rasa Tutorial channel on YTB, it said in documents that this feature can allow me to run any code I want. So is there a way to make rasa call and run a local python code and get what it returns? I could not find this in the tutorials I found.