code: def test_dataframe_sort_values_sliced(nelem, sliceobj):
      np.random.seed(0)
      df = pd.DataFrame()
      df["a"] = np.random.random(nelem)
  
      expect = df[sliceobj]["a"].sort_values()
      gdf = DataFrame.from_pandas(df)
      got = gdf[sliceobj]["a"].sort_values()
      assert (got.to_pandas() == expect).all()
  
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 4 for calling a global function with example usage: test_dataframe_sort_values_sliced(nelem, sliceobj) without return types