code: def metric_pairs(request):
      """Pairs of (dask-ml, sklearn) regression metrics.
  
      * mean_squared_error
      * mean_absolute_error
      * mean_absolute_percentage_error (if scikit-learn >= 0.24.0)
      * r2_score
      """
      return (
          getattr(dask_ml.metrics, request.param),
          getattr(sklearn.metrics, request.param),
      )
  
file_path: dask-ml/tests/metrics/test_regression.py
imports: import numbers
  import dask.array
  import numpy
  import pytest
  import sklearn.metrics
  from dask.array.utils import assert_eq
  import dask_ml.metrics
label_desc: Use image node_id 1 for calling a global function with example usage: metric_pairs(request) and returns: getattr,  getattr