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/re/multimodal/predict.py
imports: import os
  import hydra
  import torch
  import numpy
  import random
  from torchvision import transforms
  from hydra import utils
  from torch.utils.data import DataLoader
  from deepke.relation_extraction.multimodal.models.IFA_model import IFAREModel
  from deepke.relation_extraction.multimodal.modules.dataset import MMREProcessor, MMREDataset
  from deepke.relation_extraction.multimodal.modules.train import Trainer
  import warnings
  import logging
  import wandb
label_desc: Use image node_id 1 for calling a global function with example usage: set_seed(seed) without return types