I want to create a mask of an image with the values in a list. For example I have an RGB image with dimension (2, 5):
a = (np.random.rand(2, 5, 3) * 10).astyp