isalirezag:

should not this function gives me the mean 0 and std 2 for each of the channels?


No, the function should use these mean and std values to normalize the data, so that after the normalization the channels of the data would have a mean of zero and a std of one.
This procedure is also known as z-scoring. You can find more information on the Wikipedia page 18.