code: def test_reindex_name_remains(self):
      s = Series(np.random.default_rng(2).random(10))
      df = DataFrame(s, index=np.arange(len(s)))
      i = Series(np.arange(10), name="iname")
  
      df = df.reindex(i)
      assert df.index.name == "iname"
  
      df = df.reindex(Index(np.arange(10), name="tmpname"))
      assert df.index.name == "tmpname"
  
      s = Series(np.random.default_rng(2).random(10))
      df = DataFrame(s.T, index=np.arange(len(s)))
      i = Series(np.arange(10), name="iname")
      df = df.reindex(columns=i)
      assert df.columns.name == "iname"
  
imports: from datetime import datetime, timedelta
  import inspect
  import numpy
  import pytest
  from pandas._libs.tslibs.timezones import dateutil_gettz
  from pandas.compat import IS64, is_platform_windows
  from pandas.compat.numpy import np_version_gt2
  import pandas
  from pandas import Categorical, CategoricalIndex, DataFrame, Index, MultiIndex, Series, date_range, isna
  import pandas._testing
  from pandas.api.types import CategoricalDtype
label_desc: Use image node_id 21 for calling the TestDataFrameSelectReindex obj's underlying member method code with example usage: obj.test_reindex_name_remains() without return types