code: def set_seed(seed=2021):
      """set random seed"""
      torch.manual_seed(seed)
      torch.cuda.manual_seed_all(seed)
      torch.backends.cudnn.deterministic = True
      np.random.seed(seed)
      random.seed(seed)
  
file_path: DeepKE/example/ner/multimodal/run.py
imports: import os
  import hydra
  import torch
  import numpy
  import random
  from hydra import utils
  from torch.utils.data import DataLoader
  from deepke.name_entity_re.multimodal.models.IFA_model import IFANERCRFModel
  from deepke.name_entity_re.multimodal.modules.dataset import MMPNERProcessor, MMPNERDataset
  from deepke.name_entity_re.multimodal.modules.train import Trainer
  import warnings
  import logging
label_desc: Use image node_id 1 for calling a global function with example usage: set_seed(seed) without return types