code: def test_multiindex_multiple_keys(df_multi):
      """Test output if a dictionary is passed"""
      actual = df_multi.change_index_dtype(
          dtype={"second": int, "first": "category"}
      )
      expected = (
          df_multi.reset_index()
          .astype({"second": int, "first": "category"})
          .set_index(["first", "second"])
      )
      assert_frame_equal(expected, actual)
  
file_path: pyjanitor/tests/functions/test_change_index_dtype.py
imports: import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal
label_desc: Use image node_id 9 for calling a global function with example usage: test_multiindex_multiple_keys(df_multi) without return types