code: def test_regression_metrics():
      """
      Expects
      -------
      * Test metrics do not change output for autosklearn.metrics.REGRESSION_METRICS.
      """
      for (
          metric,
          scorer,
      ) in autosklearn.metrics.REGRESSION_METRICS.items():
          y_true = np.random.random(100).reshape((-1, 1))
          y_pred = y_true.copy() + np.random.randn(100, 1) * 0.1
  
          if metric == "mean_squared_log_error":
              y_true = np.abs(y_true)
              y_pred = np.abs(y_pred)
  
          y_true_2 = y_true.copy()
          y_pred_2 = y_pred.copy()
          assert np.isfinite(scorer(y_true_2, y_pred_2))
          np.testing.assert_array_almost_equal(
              y_true, y_true_2, err_msg=metric
          )
          np.testing.assert_array_almost_equal(
              y_pred, y_pred_2, err_msg=metric
          )
  
imports: import warnings
  import numpy
  import sklearn.metrics
  import autosklearn.metrics
  from autosklearn.constants import BINARY_CLASSIFICATION, REGRESSION
  from autosklearn.metrics import calculate_losses, calculate_scores, compute_single_metric
  import pytest
  import unittest
label_desc: Use image node_id 3 for calling a global function with example usage: test_regression_metrics() without return types