code: def test_xs_level_eq_2(self):
      arr = np.random.default_rng(2).standard_normal((3, 5))
      index = MultiIndex(
          levels=[["a", "p", "x"], ["b", "q", "y"], ["c", "r", "z"]],
          codes=[[2, 0, 1], [2, 0, 1], [2, 0, 1]],
      )
      df = DataFrame(arr, index=index)
      expected = DataFrame(arr[1:2], index=[["a"], ["b"]])
      result = df.xs("c", level=2)
      tm.assert_frame_equal(result, expected)
  
imports: import re
  import numpy
  import pytest
  from pandas.errors import SettingWithCopyError
  from pandas import DataFrame, Index, IndexSlice, MultiIndex, Series, concat
  import pandas._testing
  from pandas.tseries.offsets import BDay
label_desc: Use image node_id 4 for calling the TestXSWithMultiIndex obj's underlying member method code with example usage: obj.test_xs_level_eq_2() without return types