I tried to test the usage of np.all, the test array a is
a=array([[[ 0, 0, 0],
[ 0, 0, 0],
[ 0, 0, 0],
[ 0, 0, 0]],
[[ 0, 0, 255],
[255, 255, 255],
[ 0, 0, 0],
[255, 0, 0]]])
b = [255,0,255]
c = np.all(a==b,axis=1)
I got
c= array([[False, True, False],
[False, False, False]], dtype=bool)
I don't understand how was TRUE in c obtained from running np.all(a==b,axis=1).