code: def absolute_percent_error(preds: Tensor, target: Tensor) -> Tensor:
      return quantile_percent_error(preds, target, 0.5)
  
file_path: gluonts/src/gluonts/nursery/daf/tslib/metrics/metrics.py
imports: import torch
  from torch import Tensor, BoolTensor
  from torch.nn.functional import l1_loss, mse_loss
  from torch.distributions import Distribution, Normal
label_desc: Use image node_id 4 for calling a global function with example usage: absolute_percent_error(preds, target) and returns: quantile_percent_error