code: def test_make_scorer_df():
      """Tests make_scorer_df"""
      scorer = make_scorer_df(
          "r2", greater_is_better=True, some_kwarg=True
      )
      assert isinstance(scorer, _PredictScorerDF)
      assert scorer._sign == 1
      assert scorer._kwargs == {"some_kwarg": True}
  
      kwargs = {"kwarg1": True, "kwarg2": "val"}
      scorer = make_scorer_df(
          mean_absolute_percent_error, greater_is_better=False, **kwargs
      )
      assert isinstance(scorer, _PredictScorerDF)
      assert scorer._sign == -1
      assert scorer._kwargs == kwargs
  
file_path: greykite/greykite/tests/sklearn/test_sklearn_scorer.py
imports: import numpy
  import pandas
  import pytest
  from sklearn.metrics import mean_absolute_error
  from greykite.common.constants import TIME_COL
  from greykite.common.constants import VALUE_COL
  from greykite.common.evaluation import mean_absolute_percent_error
  from greykite.sklearn.estimator.null_model import DummyEstimator
  from greykite.sklearn.sklearn_scorer import _PredictScorerDF
  from greykite.sklearn.sklearn_scorer import make_scorer_df
label_desc: Use image node_id 2 for calling a global function with example usage: test_make_scorer_df() without return types