code: def initialize_random(seed, init_cuda=True):
      """
      Initializes random seed for all aspects of training: python, numpy, torch, cuda
  
      :param seed:
      :param init_cuda: whether to init cuda seed
      :return:
      """
      ## Initialize random seed for repeatability ##
      random.seed(seed)
      os.environ["PYTHONHASHSEED"] = str(seed)
      np.random.seed(seed)
      torch.manual_seed(seed)
      if init_cuda:
          torch.cuda.manual_seed_all(seed)
  
file_path: pywick/pywick/misc.py
imports: from enum import Enum, auto
  import errno
  import random
  import os
  import numpy
  import torch
label_desc: Use image node_id 5 for calling a global function with example usage: initialize_random(seed, init_cuda) without return types