code: def test_sort_index_ignore_index_multi_index(
      self,
      inplace,
      original_dict,
      sorted_dict,
      ascending,
      ignore_index,
      output_index,
  ):
      # GH 30114, this is to test ignore_index on MultiIndex of index
      mi = MultiIndex.from_tuples([(2, 1), (3, 4)], names=list("AB"))
      df = DataFrame(original_dict, index=mi)
      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=mi))
  
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 16 for calling the TestDataFrameSortIndex obj's underlying member method code with example usage: obj.test_sort_index_ignore_index_multi_index(inplace, original_dict, sorted_dict, ascending, ignore_index, output_index) without return types