code: def test_sorting(data, ascending, na_position, ignore_index):
      expect = Series(data).list.sort_values(
          ascending=ascending,
          na_position=na_position,
          ignore_index=ignore_index,
      )
      got = (
          dgd.from_cudf(Series(data), 5)
          .list.sort_values(
              ascending=ascending,
              na_position=na_position,
              ignore_index=ignore_index,
          )
          .compute()
          .reset_index(drop=True)
      )
      assert_eq(expect, got)
  
imports: import numpy
  import pandas
  import pytest
  from pandas.testing import assert_series_equal
  from dask import dataframe
  from cudf import DataFrame, Series, date_range
  from cudf.testing._utils import assert_eq, does_not_raise
  import dask_cudf
label_desc: Use image node_id 32 for calling a global function with example usage: test_sorting(data, ascending, na_position, ignore_index) without return types