code: def test_2m_0cf():
      funcs = {"recall": skm.recall_score, "prec": skm.precision_score}
      target = MetricFrame(
          metrics=funcs, y_true=y_t, y_pred=y_p, sensitive_features=g_1
      )  # Irrelevant for this test
      assert target._user_supplied_callable is False
  
      assert isinstance(target.overall, pd.Series)
      assert len(target.overall) == 2
      exp_recall = skm.recall_score(y_t, y_p)
      exp_prec = skm.precision_score(y_t, y_p)
      assert target.overall["recall"] == exp_recall
      assert target.overall["prec"] == exp_prec
  
file_path: fairlearn/test/unit/metrics/test_metricframe_overall.py
imports: import numpy
  import pandas
  import pytest
  import sklearn.metrics
  from fairlearn.metrics import MetricFrame
  from .data_for_test import g_1, g_2, g_3, s_w, y_p, y_t
label_desc: Use image node_id 5 for calling a global function with example usage: test_2m_0cf() without return types