code: def test_xs_duplicates(self):
      df = DataFrame(
          np.random.default_rng(2).standard_normal((5, 2)),
          index=["b", "b", "c", "b", "a"],
      )
  
      cross = df.xs("c")
      exp = df.iloc[2]
      tm.assert_series_equal(cross, exp)
  
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 3 for calling the TestXS obj's underlying member method code with example usage: obj.test_xs_duplicates() without return types