code: def test(model, loader):
      model.eval()
      y_pred = []
  
      for step, (g, labels) in enumerate(
          tqdm(loader, desc="Iteration")
      ):
          g = g.tensor()
          #  labels = paddle.to_tensor(labels)
  
          pred = model(g)
  
          y_pred.append(pred.numpy().reshape(-1, 1))
  
      y_pred = np.concatenate(y_pred).reshape(
          -1,
      )
  
      return y_pred
  
file_path: PGL/ogb_examples/lsc/PCQM4M/main_gnn.py
imports: import os
  import time
  import random
  import argparse
  import numpy
  from tqdm import tqdm
  from tensorboardX import SummaryWriter
  import paddle
  import paddle.nn
  import paddle.nn.functional
  import pgl
  from pgl.utils.data import Dataloader
  from ogb.lsc import PCQM4MDataset, PCQM4MEvaluator
  from ogb.utils import smiles2graph
  from dataset import MolDataset, Subset, CollateFn
  from gnn import GNN
label_desc: Use image node_id 3 for calling a global function with example usage: test(model, loader) and returns: y_pred