Could you please tell me the use of mask(in grating andimage)

i am a rookie of the psychopy know little about psychopy or python,and i am not a native speaker of English,which means i can’t easily understand some part of documentation.Would you please tell me the use of mask with some understandable examples?Thanks a lot.