Function to be implemented by the user.
mb_stream_infos(mb_source)
minibatch source on which to perform the operation