code: def test_metrics_imperfect_regression(metric: str):
      _assert_imperfect_score(scorer=METRICS[REGRESSION][metric])
  
file_path: autogluon/core/tests/unittests/metrics/test_metrics.py
imports: from math import isclose
  import numpy
  import pytest
  import sklearn
  from autogluon.core.constants import BINARY, MULTICLASS, QUANTILE, REGRESSION
  from autogluon.core.metrics import METRICS, Scorer, rmse_func
label_desc: Use image node_id 7 for calling a global function with example usage: test_metrics_imperfect_regression(metric) without return types