code: def error(gpu_res, cpu_res):
      res = sum(
          [
              sum([diff(a, b) for a in w])
              for w, b in zip(gpu_res, cpu_res)
          ]
      )
      res /= sum([np.sum(np.abs(g.asnumpy())) for g in cpu_res])
      return res
  
file_path: mxnet/tools/bandwidth/measure.py
imports: import os, sys
  import mxnet
  import logging
  import argparse
  import time
  import numpy
  from importlib import import_module
  from collections import namedtuple
  from functools import reduce
label_desc: Use image node_id 4 for calling a global function with example usage: error(gpu_res, cpu_res) and returns: res