Week 3 Assignment: Image Segmentation of Handwritten Digits

please help me to understand the code , I am getting error

when i indiviually passed the annotation image in to function
i am getting below error.

The function input it tells you should be arrays and those arrays could contain many images including batch dimension, have you though about the batch dimension!