code: def set_seed(seed):
      random.seed(seed)
      np.random.seed(seed)
      torch.manual_seed(seed)
      torch.cuda.manual_seed_all(seed)
  
file_path: OpenNRE/example/train_bag_bert.py
imports: import sys, json
  import torch
  import os
  import numpy
  import opennre
  import argparse
  import logging
  import random
label_desc: Use image node_id 1 for calling a global function with example usage: set_seed(seed) without return types