def set_seed(seed: int):
    """
    Helper function for reproducible behavior to set the seed in ``random``, ``numpy``, ``torch``.

    Args:
        seed (:obj:`int`): The seed to set.
    """
    random.seed(seed)
    np.random.seed(seed)
    torch.manual_seed(seed)
Helper function for reproducible behavior to set the seed in ``random``, ``numpy``, ``torch``.

Args:
seed (:obj:`int`): The seed to set.
towhee/trainer/utils/trainer_utils.py