code: def test_zero_div():
      a = torch.tensor([2.0, -1.0, -1.0, 2.0])
      ground_truth = torch.tensor([0.0, 0.5, 0.2, 1.0])
  
      m = MeanAbsoluteRelativeError()
      with raises(NotComputableError, match=r"The ground truth has 0"):
          m.update((a, ground_truth))
  
imports: import os
  import numpy
  import pytest
  import torch
  from pytest import approx, raises
  import ignite.distributed
  from ignite.contrib.metrics.regression import MeanAbsoluteRelativeError
  from ignite.engine import Engine
  from ignite.exceptions import NotComputableError
label_desc: Use image node_id 3 for calling a global function with example usage: test_zero_div() without return types