A brain mask for tractography

Hi all,

I am looking to run a deep learning model using ISMRM 2015 dataset. To run the model it requires brain mask. What is the use of a brain mask and how to find it or generate one for ISMRM 2015 datset?