Getting errror while implementing the project

Hi, there I have successfully extracted the emails and now I am stuck while implementing the function. I am doing it on my pc, not on cloud. Please check the screenshot. I don’t know what to do now. Please help.

Hi, Navjot.

May I know where you are running this program?
I see that the path you are giving is that of your Local machine, you can also give your CloudxLab.
You can also take inspirations from the Hints.

All the best

hi sir, actually I am doing it offline instead of cloud, I have saved these mails in c:/gyb and I am able to see them, is it mandatory that I should do them on cloud.

I read the documentation section and I did it accordingly but I saved the emails to a local folder

Hi, Navjot.

You can also do in the local machine also, as you can see in the screenshots you shared there is a syntax error.
Please look into this again.

All the best.