code: def test_xs_loc_equality(self, multiindex_dataframe_random_data):
      df = multiindex_dataframe_random_data
      result = df.xs(("bar", "two"))
      expected = df.loc[("bar", "two")]
      tm.assert_series_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 13 for calling the TestXSWithMultiIndex obj's underlying member method code with example usage: obj.test_xs_loc_equality(multiindex_dataframe_random_data) without return types