code: def accuracy(logits, labels):
      indices = tf.math.argmax(logits, axis=1)
      acc = tf.reduce_mean(tf.cast(indices == labels, dtype=tf.float32))
      return acc.numpy().item()
  
file_path: dgl/examples/tensorflow/gat/train.py
imports: import argparse
  import time
  import dgl
  import networkx
  import numpy
  import tensorflow
  from dgl.data import CiteseerGraphDataset, CoraGraphDataset, PubmedGraphDataset, register_data_args
  from gat import GAT
  from utils import EarlyStopping
label_desc: Use image node_id 1 for calling a global function with example usage: accuracy(logits, labels) and returns: acc