code: def test_selection_rate_unweighted():
      y_true = [0, 0, 0, 0, 0, 0, 0, 0]
      y_pred = [0, 0, 0, 1, 1, 1, 1, 1]
  
      result = metrics.selection_rate(y_true, y_pred)
  
      assert result == 0.625
  
imports: import pytest
  import fairlearn.metrics
  from fairlearn.metrics._base_metrics import _EMPTY_INPUT_PREDICTIONS_ERROR_MESSAGE
label_desc: Use image node_id 3 for calling a global function with example usage: test_selection_rate_unweighted() without return types