code: def add_seed(
      parallel_mode: ParallelMode, seed: int, overwrite: bool = False
  ):
      """Adds a seed to the seed manager for `parallel_mode`.
  
      Args:
          parallel_mode (:class:`colossalai.legacy.context.ParallelMode`): The chosen parallel mode.
          seed (int): The seed to be added
      Raises:
          AssertionError: Raises an AssertionError if `parallel_mode` is not an instance of
              :class:`colossalai.legacy.context.ParallelMode` or the seed for `parallel_mode` has been added.
  
      Note:
          The parallel_mode should be concluded in ``ParallelMode``. More details about ``ParallelMode`` could be found
          in `parallel_mode <https://github.com/hpcaitech/ColossalAI/blob/main/colossalai/context/parallel_mode.py>`_.
      """
      _SEED_MANAGER.add_seed(parallel_mode, seed, overwrite)
  
file_path: ColossalAI/colossalai/legacy/context/random/_helper.py
imports: import functools
  from contextlib import contextmanager
  import torch.cuda
  from torch import Tensor
  from ..parallel_mode import ParallelMode
  from .seed_manager import SeedManager
label_desc: Use image node_id 4 for calling a global function with example usage: add_seed(parallel_mode, seed, overwrite) without return types