code: def test_concat_copy_index_series(self, axis, using_copy_on_write):
      # GH 29879
      ser = Series([1, 2])
      comb = concat([ser, ser], axis=axis, copy=True)
      if not using_copy_on_write or axis in [0, "index"]:
          assert comb.index is not ser.index
      else:
          assert comb.index is ser.index
  
imports: from copy import deepcopy
  import numpy
  import pytest
  from pandas.errors import PerformanceWarning
  import pandas
  from pandas import DataFrame, Index, MultiIndex, Series, concat
  import pandas._testing
label_desc: Use image node_id 4 for calling the TestIndexConcat obj's underlying member method code with example usage: obj.test_concat_copy_index_series(axis, using_copy_on_write) without return types