code: def test_big_tie():
      for n in [10000, 100000, 1000000]:
          data = np.ones(n, dtype=int)
          r = rankdata(data)
          expected_rank = 0.5 * (n + 1)
          assert_array_equal(
              r, expected_rank * data, "test failed with n=%d" % n
          )
  
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 6 for calling a global function with example usage: test_big_tie() without return types