code: def make_torch_deterministic(seed=0):
      """Makes Torch code run deterministically."""
      torch.backends.cudnn.benchmark = False
      torch.backends.cudnn.deterministic = True
      torch.manual_seed(seed)
      torch.cuda.manual_seed_all(seed)
      os.environ["MKL_NUM_THREADS"] = "1"
      os.environ["OMP_NUM_THREADS"] = "1"
  
imports: import os
  import unittest
  from functools import wraps
  import torch
  from classy_vision.hooks import ClassyHook
  from classy_vision.tasks import ClassyTask
  from classy_vision.trainer import ClassyTrainer
label_desc: Use image node_id 3 for calling a global function with example usage: make_torch_deterministic(seed) without return types