code: def print_mape(y: np.array, y_hat: np.array):
      """
      Calculating Mean Absolute Percent Error https://en.wikipedia.org/wiki/Mean_absolute_percentage_error
      """
      try:
          perc_err = (100 * (y - y_hat)) / y
          return np.mean(abs(perc_err))
      except:
          return np.nan
  
file_path: Auto_TS/auto_ts/utils/metrics.py
imports: from typing import Tuple
  import numpy
  import pandas
  import matplotlib.pyplot
  from sklearn.metrics import mean_absolute_error, mean_squared_error
  import pdb
label_desc: Use image node_id 5 for calling a global function with example usage: print_mape(y, y_hat) and returns: np, np