code: def compute_depth_errors(gt, pred):
      """Computation of error metrics between predicted and ground truth depths"""
      thresh = np.maximum((gt / pred), (pred / gt))
      a1 = (thresh < 1.25).mean()
      a2 = (thresh < 1.25**2).mean()
      a3 = (thresh < 1.25**3).mean()
  
      rmse = (gt - pred) ** 2
      rmse = np.sqrt(rmse.mean())
  
      rmse_log = (np.log(gt) - np.log(pred)) ** 2
      rmse_log = np.sqrt(rmse_log.mean())
  
      abs_rel = np.mean(np.abs(gt - pred) / gt)
  
      sq_rel = np.mean(((gt - pred) ** 2) / gt)
  
      return abs_rel, sq_rel, rmse, rmse_log, a1, a2, a3
  
imports: from __future__ import absolute_import, division, print_function
  import numpy
  import mxnet
  from mxnet.gluon import nn
label_desc: Use image node_id 6 for calling a global function with example usage: compute_depth_errors(gt, pred) and returns: abs_rel,  sq_rel,  rmse,  rmse_log,  a1,  a2,  a3