code: def test_prank(train_data):
      X, y = train_data
      est = PRank(n_iter=10, shuffle=False, random_state=0)
      est.fit(X, y)
      np.testing.assert_almost_equal(est.score(X, y), 41.86, 2)
  
      est = PRank(n_iter=10, shuffle=True, random_state=0)
      est.fit(X, y)
      np.testing.assert_almost_equal(est.score(X, y), 71.04, 2)
  
file_path: lightning/lightning/impl/tests/test_prank.py
imports: import numpy
  import pytest
  from sklearn.datasets import load_diabetes
  from lightning.ranking import PRank
  from lightning.ranking import KernelPRank
label_desc: Use image node_id 2 for calling a global function with example usage: test_prank(train_data) without return types