code: def cal_acc(labels, logits):
      indices = tf.math.argmax(logits, axis=1)
      acc = tf.math.reduce_mean(
          tf.cast(indices == labels, dtype=tf.float32)
      )
      return acc.numpy().item()
  
file_path: neural-structured-learning/research/gnn-survey/utils.py
imports: import os
  from models import GAT
  from models import GCN
  from models import GIN
  import numpy
  import scipy.sparse
  import tensorflow
label_desc: Use image node_id 2 for calling a global function with example usage: cal_acc(labels, logits) and returns: acc