code: def precision(gt_labels, pred_labels):
      return precision_score(gt_labels, pred_labels)
  
file_path: dgl/examples/pytorch/hilander/utils/metrics.py
imports: from __future__ import division
  import numpy
  from sklearn.metrics import precision_score, recall_score
  from sklearn.metrics.cluster import contingency_matrix, normalized_mutual_info_score
label_desc: Use image node_id 8 for calling a global function with example usage: precision(gt_labels, pred_labels) and returns: precision_score