Add flag to know in getBatch if we are getting a test or train batch