code: def AddAccuracy(model, softmax, label):
      """Adds an accuracy op to the model"""
      accuracy = brew.accuracy(model, [softmax, label], "accuracy")
      return accuracy
  
file_path: pytorch-tensorboardx/examples/demo_caffe2.py
imports: import numpy
  import os
  import shutil
  from caffe2.python import core, model_helper, workspace, brew
  from tensorboardX import TorchVis
label_desc: Use image node_id 4 for calling a global function with example usage: AddAccuracy(model, softmax, label) and returns: accuracy