code: def set_random_seed(seed=0):
      """Set random seed.
      Parameters
      ----------
      seed : int
          Random seed to use
      """
      random.seed(seed)
      np.random.seed(seed)
      torch.manual_seed(seed)
      if torch.cuda.is_available():
          torch.cuda.manual_seed(seed)
  
file_path: AutoGL/test/performance/heterogeneous/dgl/train_han.py
imports: import os
  import numpy
  from tqdm import tqdm
  import torch
  import random
  from autogl.module.train import NodeClassificationHetTrainer
  from autogl.solver.utils import set_seed
  import logging
  from autogl.datasets import build_dataset_from_name
label_desc: Use image node_id 1 for calling a global function with example usage: set_random_seed(seed) without return types