code: def test_concat_series_axis1_preserves_series_names(self):
      # preserve series names, #2489
      s = Series(np.random.default_rng(2).standard_normal(5), name="A")
      s2 = Series(np.random.default_rng(2).standard_normal(5), name="B")
  
      result = concat([s, s2], axis=1)
      expected = DataFrame({"A": s, "B": s2})
      tm.assert_frame_equal(result, expected)
  
      s2.name = None
      result = concat([s, s2], axis=1)
      tm.assert_index_equal(
          result.columns, Index(["A", 0], dtype="object")
      )
  
file_path: pandas/pandas/tests/reshape/concat/test_series.py
imports: import numpy
  import pytest
  from pandas import DataFrame, DatetimeIndex, Index, MultiIndex, Series, concat, date_range
  import pandas._testing
label_desc: Use image node_id 4 for calling the TestSeriesConcat obj's underlying member method code with example usage: obj.test_concat_series_axis1_preserves_series_names() without return types