code: def test_highdim_metrics(self):
      y_true = [
          [[3, -0.5], [2, 7]],
          [[3, -0.5], [2, 7]],
          [[3, -0.5], [2, 7]],
      ]
      y_pred = [
          [[2.5, -0.3], [2, 8]],
          [[2.5, -0.3], [2, 8]],
          [[2.5, -0.3], [2, 8]],
      ]
      assert_almost_equal(
          sMAPE(y_true, y_pred, multioutput="uniform_average"),
          [10.19],
          decimal=2,
      )
      assert_almost_equal(
          MAPE(y_true, y_pred, multioutput="uniform_average"),
          [17.74],
          decimal=2,
      )
      assert_almost_equal(
          MPE(y_true, y_pred, multioutput="uniform_average"),
          [10.6],
          decimal=2,
      )
      assert_almost_equal(
          RMSE(y_true, y_pred, multioutput="uniform_average"),
          [0.57],
          decimal=2,
      )
  
      assert_almost_equal(
          ME(y_true, y_pred, multioutput="uniform_average"),
          [-0.18],
          decimal=2,
      )
      assert_almost_equal(
          MSPE(y_true, y_pred, multioutput="uniform_average"),
          [5.2],
          decimal=2,
      )
      assert_almost_equal(
          MDAPE(y_true, y_pred, multioutput="uniform_average"),
          [17.74],
          decimal=2,
      )
      assert_almost_equal(
          sMDAPE(y_true, y_pred, multioutput="uniform_average"),
          [10.19],
          decimal=2,
      )
      assert_almost_equal(
          MSE(y_true, y_pred, multioutput="uniform_average"),
          [0.32],
          decimal=2,
      )
  
file_path: BigDL/python/orca/test/bigdl/orca/automl/test_metrics.py
imports: import pytest
  import numpy
  from bigdl.orca.test_zoo_utils import ZooTestCase
  from bigdl.orca.automl.metrics import ME, MAE, MSE, RMSE, MSLE, R2
  from bigdl.orca.automl.metrics import MPE, MAPE, MSPE, sMAPE, MDAPE, sMDAPE
  from numpy.testing import assert_almost_equal
  from numpy.testing import assert_array_almost_equal
label_desc: Use image node_id 5 for calling the TestMetrics obj's underlying member method code with example usage: obj.test_highdim_metrics() without return types