code: def test_cases():
      for values, method, expected in _cases:
          r = rankdata(values, method=method)
          assert_array_equal(r, expected)
  
file_path: catboost/contrib/python/scipy/py3/scipy/stats/tests/test_rank.py
imports: import numpy
  from numpy.testing import assert_equal, assert_array_equal
  from scipy.stats import rankdata, tiecorrect
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_cases() without return types