import random import torch import os def set_seed(seed: int = 42): random.seed(seed) torch.manual_seed(seed) torch.cuda.manual_seed_all(seed)