code: def test_xs_view(self, using_copy_on_write, warn_copy_on_write):
      # in 0.14 this will return a view if possible a copy otherwise, but
      # this is numpy dependent
  
      dm = DataFrame(
          np.arange(20.0).reshape(4, 5),
          index=range(4),
          columns=range(5),
      )
      df_orig = dm.copy()
  
      if using_copy_on_write:
          with tm.raises_chained_assignment_error():
              dm.xs(2)[:] = 20
          tm.assert_frame_equal(dm, df_orig)
      else:
          with tm.raises_chained_assignment_error():
              dm.xs(2)[:] = 20
          assert (dm.xs(2) == 20).all()
  
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 5 for calling the TestXS obj's underlying member method code with example usage: obj.test_xs_view(using_copy_on_write, warn_copy_on_write) without return types