code: def get_ogb_evaluator(dataset):
      """
      Get evaluator from Open Graph Benchmark based on dataset
      """
      evaluator = Evaluator(name=dataset)
      return lambda preds, labels: evaluator.eval(
          {
              "y_true": labels.view(-1, 1),
              "y_pred": preds.view(-1, 1),
          }
      )["acc"]
  
file_path: dgl/examples/pytorch/ogb/sign/dataset.py
imports: import dgl
  import dgl.function
  import numpy
  import torch
  from ogb.nodeproppred import DglNodePropPredDataset, Evaluator
label_desc: Use image node_id 1 for calling a global function with example usage: get_ogb_evaluator(dataset) and returns: function