docstr: stats.rankdata([]) should return an empty array.
docstr_tok: ["stats.rankdata","(","[","]",")","should","return","an","empty","array","."]
code: def test_empty(self):
      """stats.rankdata([]) should return an empty array."""
      a = np.array([], dtype=int)
      r = rankdata(a)
      assert_array_equal(r, np.array([], dtype=np.float64))
      r = rankdata([])
      assert_array_equal(r, np.array([], dtype=np.float64))
  
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 the TestRankData obj's underlying member method code with example usage: obj.test_empty() without return types