I am getting a black image after i use my funtion

why is this happening

Hello @sankalparora5,

This question is too incomplete to provide you with any assistant. Kindly explain the entire issue with screenshots(if needed).