code: def _concat_index_asobject(to_concat, name=None):
      """
      concat all inputs as object. DatetimeIndex, TimedeltaIndex and
      PeriodIndex are converted to object dtype before concatenation
      """
      from pandas import Index
      from pandas.core.arrays import ExtensionArray
  
      klasses = (
          ABCDatetimeIndex,
          ABCTimedeltaIndex,
          ABCPeriodIndex,
          ExtensionArray,
      )
      to_concat = [
          x.astype(object) if isinstance(x, klasses) else x
          for x in to_concat
      ]
  
      self = to_concat[0]
      attribs = self._get_attributes_dict()
      attribs["name"] = name
  
      to_concat = [
          x._values if isinstance(x, Index) else x for x in to_concat
      ]
  
      return self._shallow_copy_with_infer(
          np.concatenate(to_concat), **attribs
      )
  
file_path: catboost/contrib/python/pandas/py2/pandas/core/dtypes/concat.py
imports: import numpy
  from pandas._libs import tslib, tslibs
  from pandas.core.dtypes.common import _NS_DTYPE, _TD_DTYPE, is_bool_dtype, is_categorical_dtype, is_datetime64_dtype, is_datetime64tz_dtype, is_dtype_equal, is_extension_array_dtype, is_object_dtype, is_sparse, is_timedelta64_dtype
  from pandas.core.dtypes.generic import ABCDatetimeArray, ABCDatetimeIndex, ABCIndexClass, ABCPeriodIndex, ABCRangeIndex, ABCSparseDataFrame, ABCTimedeltaIndex
  from pandas import compat
label_desc: Use image node_id 12 for calling a global function with example usage: _concat_index_asobject(to_concat, name) and returns: self