code: def test_wrong_input_shapes():
      m = FractionalAbsoluteError()
  
      with pytest.raises(
          ValueError,
          match=r"Input data shapes should be the same, but given",
      ):
          m.update((torch.rand(4), torch.rand(4, 1)))
  
      with pytest.raises(
          ValueError,
          match=r"Input data shapes should be the same, but given",
      ):
          m.update((torch.rand(4, 1), torch.rand(4)))
  
imports: import os
  import numpy
  import pytest
  import torch
  import ignite.distributed
  from ignite.contrib.metrics.regression import FractionalAbsoluteError
  from ignite.engine import Engine
  from ignite.exceptions import NotComputableError
label_desc: Use image node_id 2 for calling a global function with example usage: test_wrong_input_shapes() without return types