code: def test_series_argsort(nelem, dtype, asc):
      np.random.seed(0)
      sr = Series((100 * np.random.random(nelem)).astype(dtype))
      res = sr.argsort(ascending=asc)
  
      if asc:
          expected = np.argsort(sr.to_numpy(), kind="mergesort")
      else:
          expected = np.argsort(sr.to_numpy() * -1, kind="mergesort")
      np.testing.assert_array_equal(expected, res.to_numpy())
  
imports: import string
  from itertools import product
  import numpy
  import pandas
  import pytest
  from cudf import DataFrame, Series
  from cudf.core.column import NumericalColumn
  from cudf.testing._utils import DATETIME_TYPES, NUMERIC_TYPES, assert_eq, assert_exceptions_equal, expect_warning_if
label_desc: Use image node_id 5 for calling a global function with example usage: test_series_argsort(nelem, dtype, asc) without return types