code: def test_getitem_partial_int(self):
      # GH 12416
      # with single item
      l1 = [10, 20]
      l2 = ["a", "b"]
      df = DataFrame(
          index=range(2), columns=MultiIndex.from_product([l1, l2])
      )
      expected = DataFrame(index=range(2), columns=l2)
      result = df[20]
      tm.assert_frame_equal(result, expected)
  
      # with list
      expected = DataFrame(
          index=range(2), columns=MultiIndex.from_product([l1[1:], l2])
      )
      result = df[[20]]
      tm.assert_frame_equal(result, expected)
  
      # missing item:
      with pytest.raises(KeyError, match="1"):
          df[1]
      with pytest.raises(KeyError, match=r"'\[1\] not in index'"):
          df[[1]]
  
file_path: pandas/pandas/tests/indexing/multiindex/test_partial.py
imports: import numpy
  import pytest
  from pandas import DataFrame, DatetimeIndex, MultiIndex, date_range
  import pandas._testing
label_desc: Use image node_id 1 for calling the TestMultiIndexPartial obj's underlying member method code with example usage: obj.test_getitem_partial_int() without return types