How to use actions.py for EnterpriseSearchPolicy correctly?

Hi. I’m very new to Rasa pro and I’m trying to understand how do I correctly use actions.py file for EnterpriseSearchPolicy? If possible, please provide examples so that I can learn from them. I have looked through the documentation Enterprise Search Policy but I’m still lost. Thank you!

Maybe this tutorial will be useful: