code: def test_sort_values(
      data, index, ascending, na_position, ignore_index
  ):
      key_func = functools.partial(
          key_func_builder, na_position=na_position
      )
  
      ps = pd.Series(data, index=index)
      gs = cudf.from_pandas(ps)
  
      expected = ps.apply(
          lambda x: sorted(x, key=key_func, reverse=not ascending)
          if x is not None
          else None
      )
      if ignore_index:
          expected.reset_index(drop=True, inplace=True)
      got = gs.list.sort_values(
          ascending=ascending,
          na_position=na_position,
          ignore_index=ignore_index,
      )
  
      assert_eq(expected, got)
  
imports: import functools
  import operator
  import numpy
  import pandas
  import pyarrow
  import pytest
  import cudf
  from cudf import NA
  from cudf._lib.copying import get_element
  from cudf.api.types import is_scalar
  from cudf.testing._utils import DATETIME_TYPES, NUMERIC_TYPES, TIMEDELTA_TYPES, assert_eq
label_desc: Use image node_id 15 for calling a global function with example usage: test_sort_values(data, index, ascending, na_position, ignore_index) without return types