code: def test_sort_index_ignore_index(
      self,
      inplace,
      original_dict,
      sorted_dict,
      ascending,
      ignore_index,
      output_index,
  ):
      # GH 30114
      original_index = [2, 5, 3]
      df = DataFrame(original_dict, index=original_index)
      expected_df = DataFrame(sorted_dict, index=output_index)
      kwargs = {
          "ascending": ascending,
          "ignore_index": ignore_index,
          "inplace": inplace,
      }
  
      if inplace:
          result_df = df.copy()
          result_df.sort_index(**kwargs)
      else:
          result_df = df.sort_index(**kwargs)
  
      tm.assert_frame_equal(result_df, expected_df)
      tm.assert_frame_equal(
          df, DataFrame(original_dict, index=original_index)
      )
  
imports: import numpy
  import pytest
  import pandas
  from pandas import CategoricalDtype, CategoricalIndex, DataFrame, IntervalIndex, MultiIndex, RangeIndex, Series, Timestamp
  import pandas._testing
label_desc: Use image node_id 14 for calling the TestDataFrameSortIndex obj's underlying member method code with example usage: obj.test_sort_index_ignore_index(inplace, original_dict, sorted_dict, ascending, ignore_index, output_index) without return types