code: def test_argsort_k_largest(x, k):
      assume(len(x) >= k)
      assume(len(set(x)) == len(x))
      assume(not np.isnan(x).any())
      assert (np.argsort(x)[-k:][::-1] == argsort_k_largest(x, k)).all()
  
file_path: eli5/tests/test_utils.py
imports: from __future__ import absolute_import
  import numpy
  import scipy.sparse
  from hypothesis import given, assume, settings, HealthCheck
  from hypothesis.strategies import integers
  from eli5.utils import argsort_k_largest, argsort_k_largest_positive, argsort_k_smallest, vstack
  from .utils import rnd_len_arrays
label_desc: Use image node_id 2 for calling a global function with example usage: test_argsort_k_largest(x, k) without return types