code: def mape(y, p):
      """Mean Absolute Percentage Error (MAPE).
      Args:
          y (numpy.array): target
          p (numpy.array): prediction
  
      Returns:
          e (numpy.float64): MAPE
      """
  
      filt = np.abs(y) > EPS
      return np.mean(np.abs(1 - p[filt] / y[filt]))
  
file_path: causalml/causalml/metrics/regression.py
imports: import logging
  import numpy
  from sklearn.metrics import mean_squared_error
  from sklearn.metrics import mean_absolute_error
  from sklearn.metrics import r2_score
  from .const import EPS
label_desc: Use image node_id 2 for calling a global function with example usage: mape(y, p) and returns: np