code: def test_rank_pct_true(self, rank_method, exp):
      # see gh-15630.
  
      df = DataFrame([[2012, 66, 3], [2012, 65, 2], [2012, 65, 1]])
      result = df.rank(method=rank_method, pct=True)
  
      expected = DataFrame(exp)
      tm.assert_frame_equal(result, expected)
  
imports: from datetime import datetime, timedelta
  import numpy
  import pytest
  from pandas._libs.algos import Infinity, NegInfinity
  from pandas import DataFrame, Index, Series
  import pandas._testing
label_desc: Use image node_id 10 for calling the TestRank obj's underlying member method code with example usage: obj.test_rank_pct_true(rank_method, exp) without return types