code: def mase(
      y_pred: npt.NDArray[np.float32],
      y_true: npt.NDArray[np.float32],
      error: npt.NDArray[np.float32],
  ) -> float:
      mase_values = np.abs(y_pred - y_true).mean(1) / error
      return mase_values.mean()
  
file_path: gluonts/src/gluonts/nursery/tsbench/src/tsbench/forecasts/metrics.py
imports: import math
  import numpy
  import numpy.typing
  from numpy import ma
  from .quantile import QuantileForecasts
label_desc: Use image node_id 6 for calling a global function with example usage: mase(y_pred, y_true, error) and returns: mase_values