Usually we have two files - one for train and test

Here there is only 1 file like workshop4.cse. How do we know which code runs for training mode and which for scoring mode?