code: def fix_seed(seed=12345):
      import torch
      import numpy as np
      import random
  
      torch.manual_seed(seed)  # cpu
      torch.cuda.manual_seed(seed)  # gpu
      np.random.seed(seed)  # numpy
      random.seed(seed)  # random and transforms
      torch.backends.cudnn.deterministic = True
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from .pretrain import check_root, get_model, download, download_pretrain
  import logging
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: fix_seed(seed) without return types