code: def set_all_random_seeds(seed: int = 1234) -> None:
      random.seed(seed)
      np.random.seed(seed)
      torch.manual_seed(seed)
      torch.cuda.manual_seed_all(seed)
      torch.backends.cudnn.deterministic = True
  
file_path: captum/tests/helpers/basic.py
imports: import copy
  import random
  import unittest
  from typing import Callable
  import numpy
  import torch
  from captum.log import patch_methods
label_desc: Use image node_id 6 for calling a global function with example usage: set_all_random_seeds(seed) without return types