Notice that we have "from utils import *" in the first cell. It means we have a file named utils and we want to import everything from it. In this file, you will see the code of map_feature. To access this file, please read this which discuss how to find the utility functions.
Furthermore, you can give this code to GPT 3 and tell it to convert that Python code to MATLAB or any other language.
Best,
Saif.