code: def seed(seed_nr: int) -> None:
      torch.manual_seed(seed_nr)
      torch.backends.cudnn.deterministic = True
      torch.backends.cudnn.benchmark = False
      np.random.seed(seed_nr)
      random.seed(seed_nr)
  
      if mx is not None:
          mx.random.seed(seed_nr)
  
imports: import random
  import torch
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: seed(seed_nr) without return types