code: def test_series_sort_values_ignore_index(ignore_index):
      gsr = Series([1, 3, 5, 2, 4])
      psr = gsr.to_pandas()
  
      expect = psr.sort_values(ignore_index=ignore_index)
      got = gsr.sort_values(ignore_index=ignore_index)
      assert_eq(expect, got)
  
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 3 for calling a global function with example usage: test_series_sort_values_ignore_index(ignore_index) without return types