def set_random_seed(seed):
    """Set the random seed for common PRNGs used during training: random, numpy, and torch.

    Args:
        seed (int): the seed to use
    """
    import numpy
    import random
    random.seed(seed)
    numpy.random.seed(seed)
    torch.manual_seed(seed)
Set the random seed for common PRNGs used during training: random, numpy, and torch.

Args:
seed (int): the seed to use
opensora/adaptor/utils.py