code: def test(model, data):
      model.eval()
      pred = model(data.x, data.edge_index, data.edge_weight)
      return float(accuracy(pred, data.y, data.test_mask))
  
imports: import copy
  import os.path
  from typing import Optional
  import torch
  import torch.nn.functional
  from torch import Tensor
  from torch.optim import Adam
  import torch_geometric.transforms
  from torch_geometric.contrib.nn import GRBCDAttack, PRBCDAttack
  from torch_geometric.datasets import Planetoid
  from torch_geometric.nn import GATConv, GCNConv
  from torch_geometric.nn.conv.gcn_conv import gcn_norm
  from torch_geometric.utils import softmax
label_desc: Use image node_id 3 for calling a global function with example usage: test(model, data) and returns: float