code: def test_some_correct(self):
      y_true = [0, 0, 0, 0, 1, 1, 1, 1]
      y_pred = [0, 0, 0, 1, 1, 0, 0, 0]
  
      result = metrics.true_positive_rate(y_true, y_pred)
      assert result == 0.25
      result = metrics.true_positive_rate(y_true, y_pred, pos_label=0)
      assert result == 0.75
  
imports: import numpy
  import pytest
  import sklearn.metrics
  import fairlearn.metrics
  from fairlearn.metrics._base_metrics import _get_labels_for_confusion_matrix
label_desc: Use image node_id 3 for calling the TestTPR obj's underlying member method code with example usage: obj.test_some_correct() without return types