Two consecutive test loops


I was wondering how to implement two test loops where the first one uses a sub set (validation_test) and calculates a thrreshold that is used in the second test loop with the remaining test samples (test_test). Both sets, validation_test and test_test are returned by test_dataloader()
This should be done for different data sets.
Does anyone have an idea?