code: def _get_eo_frame(
      y_true, y_pred, sensitive_features, sample_weight
  ) -> MetricFrame:
      fns = {"tpr": true_positive_rate, "fpr": false_positive_rate}
      sw_dict = {"sample_weight": sample_weight}
      sp = {"tpr": sw_dict, "fpr": sw_dict}
      eo = MetricFrame(
          metrics=fns,
          y_true=y_true,
          y_pred=y_pred,
          sensitive_features=sensitive_features,
          sample_params=sp,
      )
      return eo
  
file_path: fairlearn/fairlearn/metrics/_fairness_metrics.py
imports: from ._base_metrics import false_positive_rate, selection_rate, true_positive_rate
  from ._metric_frame import MetricFrame
label_desc: Use image node_id 5 for calling a global function with example usage: _get_eo_frame(y_true, y_pred, sensitive_features, sample_weight) and returns: eo