code: def test_metrics(target, forecast, metrics):
      for metric, expected, kwargs in metrics:
          np.testing.assert_almost_equal(
              metric(target, forecast, **kwargs), expected
          )
  
imports: import numpy
  import pytest
  from gluonts.evaluation.metrics import abs_error, abs_target_mean, abs_target_sum, calculate_seasonal_error, coverage, mape, mase, mse, msis, quantile_loss, smape
label_desc: Use image node_id 1 for calling a global function with example usage: test_metrics(target, forecast, metrics) without return types