code: def test_cases(values, method, expected):
      r = rankdata(values, method=method)
      assert_array_equal(r, expected)
  
file_path: pynndescent/pynndescent/tests/test_rank.py
imports: import pytest
  import numpy
  from numpy.testing import assert_array_equal
  from pynndescent.distances import rankdata
label_desc: Use image node_id 7 for calling a global function with example usage: test_cases(values, method, expected) without return types