code: def mape(pred, gt):
      """
      Desc:
          Mean Absolute Percentage Error
      Args:
          pred:
          gt: ground truth vector
      Returns:
          MAPE value
      """
      _mape = 0.0
      if len(pred) > 0 and len(gt) > 0:
          _mape = np.mean(np.abs((pred - gt) / gt))
      return _mape
  
file_path: PGL/examples/kddcup2022/wpf_baseline/metrics.py
imports: import pandas
  import time
  import numpy
label_desc: Use image node_id 7 for calling a global function with example usage: mape(pred, gt) and returns: _mape