code: def test(model, graph, idx, labels):
      model.eval()
      pred = model(graph)[idx].max(1)[1]
      acc = (pred == labels[idx]).float().mean()
      return acc.item()
  
file_path: AutoGL/test/performance/heterogeneous/dgl/hgt_main.py
imports: import os
  import numpy
  from tqdm import tqdm
  import torch
  import torch.nn.functional
  from autogl.module.model.dgl import AutoHGT, AutoHeteroRGCN
  from autogl.solver.utils import set_seed
  import numpy
  import argparse
  from autogl.datasets import build_dataset_from_name
label_desc: Use image node_id 2 for calling a global function with example usage: test(model, graph, idx, labels) and returns: acc