code: def _convert_datetimelike_to_object(x):
      # coerce datetimelike array to object dtype
  
      # if dtype is of datetimetz or timezone
      if x.dtype.kind == _NS_DTYPE.kind:
          if getattr(x, "tz", None) is not None:
              x = np.asarray(x.astype(object))
          else:
              shape = x.shape
              x = tslib.ints_to_pydatetime(
                  x.view(np.int64).ravel(), box="timestamp"
              )
              x = x.reshape(shape)
  
      elif x.dtype == _TD_DTYPE:
          shape = x.shape
          x = tslibs.ints_to_pytimedelta(
              x.view(np.int64).ravel(), box=True
          )
          x = x.reshape(shape)
  
      return x
  
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 9 for calling a global function with example usage: _convert_datetimelike_to_object(x) and returns: x