code: def _concatenate_2d(to_concat, axis: AxisInt):
      # coerce to 2d if needed & concatenate
      if axis == 1:
          to_concat = [np.atleast_2d(x) for x in to_concat]
      return np.concatenate(to_concat, axis=axis)
  
file_path: catboost/contrib/python/pandas/py3/pandas/core/dtypes/concat.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  import numpy
  from pandas._typing import AxisInt
  from pandas.core.dtypes.astype import astype_array
  from pandas.core.dtypes.cast import common_dtype_categorical_compat, find_common_type, np_find_common_type
  from pandas.core.dtypes.common import is_dtype_equal
  from pandas.core.dtypes.dtypes import DatetimeTZDtype, ExtensionDtype
  from pandas.core.dtypes.generic import ABCCategoricalIndex, ABCExtensionArray, ABCSeries
label_desc: Use image node_id 3 for calling a global function with example usage: _concatenate_2d(to_concat, axis) and returns: np