code: def test_errors_MultiIndex_dict(multiindex):
      """
      Raise if `level` is an int/string
      and duplicated
      """
      ix = {"second": "one", 0: "bar"}
      msg = "The keys in the dictionary represent the levels "
      msg += "in the MultiIndex, and should either be all "
      msg += "strings or integers."
      with pytest.raises(TypeError, match=msg):
          multiindex.select_rows(ix)
  
imports: import datetime
  import re
  import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal
label_desc: Use image node_id 25 for calling a global function with example usage: test_errors_MultiIndex_dict(multiindex) without return types