code: def median_relative_absolute_error_compute_fn(
      y_pred: torch.Tensor, y: torch.Tensor
  ) -> float:
      e = torch.abs(y.view_as(y_pred) - y_pred) / torch.abs(
          y.view_as(y_pred) - torch.mean(y)
      )
      return _torch_median(e)
  
file_path: ignite/ignite/contrib/metrics/regression/median_relative_absolute_error.py
imports: from typing import Callable, Union
  import torch
  from ignite.contrib.metrics.regression._base import _torch_median
  from ignite.metrics import EpochMetric
label_desc: Use image node_id 1 for calling a global function with example usage: median_relative_absolute_error_compute_fn(y_pred, y) and returns: _torch_median