code: def test_xs_doc_example(self):
      # TODO: more descriptive name
      # based on example in advanced.rst
      arrays = [
          ["bar", "bar", "baz", "baz", "foo", "foo", "qux", "qux"],
          ["one", "two", "one", "two", "one", "two", "one", "two"],
      ]
      tuples = list(zip(*arrays))
  
      index = MultiIndex.from_tuples(tuples, names=["first", "second"])
      df = DataFrame(
          np.random.default_rng(2).standard_normal((3, 8)),
          index=["A", "B", "C"],
          columns=index,
      )
  
      result = df.xs(("one", "bar"), level=("second", "first"), axis=1)
  
      expected = df.iloc[:, [0]]
      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 1 for calling the TestXSWithMultiIndex obj's underlying member method code with example usage: obj.test_xs_doc_example() without return types