Use nltk package's word corpus in psychopy standalone

OS: macOS 12.6
PsychoPy version: 2022.2.3
Standard Standalone? (y/n) Yes

What are you trying to achieve?:

I am using Python console from Psychopy standalone coder by adding the path of the package using sys package.
I am able to import it but when I am trying to download the word corpus of nltk using:

I get the following error:
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)

I do not know how to resolve this!?