code: def test_accuracy(net, data_loader, description):
      count = 0
      acc_top1 = mx.gluon.metric.Accuracy()
      acc_top5 = mx.gluon.metric.TopKAccuracy(5)
      start = time.time()
      for x, label in data_loader:
          output = net(x)
          acc_top1.update(label, output)
          acc_top5.update(label, output)
          count += 1
      time_spend = time.time() - start
      _, top1 = acc_top1.get()
      _, top5 = acc_top5.get()
      print(
          "{:21} Top1 Accuracy: {:.4f} Top5 Accuracy: {:.4f} from {:4} batches in {:8.2f}s".format(
              description, top1, top5, count, time_spend
          )
      )
  
imports: import mxnet
  from mxnet.gluon.data.vision import transforms
  import time
  import glob
label_desc: Use image node_id 1 for calling a global function with example usage: test_accuracy(net, data_loader, description) without return types