Thanks for your reply. I will try call it right after import. However, I have model_train function in a separate script and the model class in a separate script too, do I need to call the set seed function in those two script too? Or just in my main train script? Will it cause any issues if I call the set_seed (for the same seed) in multiple location? (Be more secure or actually cause issues?)