code: def seed_torch(seed=1029):
      np.random.seed(seed)
      torch.manual_seed(seed)
      torch.cuda.manual_seed(seed)
      torch.cuda.manual_seed_all(seed)
      torch.backends.cudnn.benchmark = False
      torch.backends.cudnn.deterministic = True
  
imports: import os
  import torch
  from deeprobust.graph.targeted_attack import Nettack
  from deeprobust.graph.utils import *
  from deeprobust.graph.data import Dataset
  from deeprobust.graph.global_attack import Metattack
  import argparse
  from deeprobust.graph.defense import *
  from deeprobust.graph.data import Dataset, PrePtbDataset, Dpr2Pyg, AmazonPyg
  from scipy.sparse import csr_matrix
  from tqdm import tqdm
  import scipy
  import scipy.sparse
  import numpy
  from sklearn.preprocessing import normalize
  import pickle
  from autogl.module.model.pyg import AutoGNNGuard, AutoGNNGuard_attack
  from autogl.solver.utils import set_seed
label_desc: Use image node_id 1 for calling a global function with example usage: seed_torch(seed) without return types