Some Question Regarding to Tutorial from Udemy & About Deployment on Rpi

Hi rasa community , i had some question regarding to tutorial from the image at line 20 to line 23 which i took from the udemy tutorial . Where does this part of code is implemented in the Rasa 2.0 version in github.

Also i would like to ask is it possible to run Rasa on Raspberry Pi 4 , i had a project which require me to implement a voice assistance with it.