code: def test_mi_partial_indexing_list_raises():
      # GH 13501
      frame = DataFrame(
          np.arange(12).reshape((4, 3)),
          index=[["a", "a", "b", "b"], [1, 2, 1, 2]],
          columns=[
              ["Ohio", "Ohio", "Colorado"],
              ["Green", "Red", "Green"],
          ],
      )
      frame.index.names = ["key1", "key2"]
      frame.columns.names = ["state", "color"]
      with pytest.raises(KeyError, match="\\[2\\] not in index"):
          frame.loc[["b", 2], "Colorado"]
  
imports: import numpy
  import pytest
  from pandas.errors import IndexingError, PerformanceWarning
  import pandas
  from pandas import DataFrame, Index, MultiIndex, Series
  import pandas._testing
label_desc: Use image node_id 27 for calling a global function with example usage: test_mi_partial_indexing_list_raises() without return types