code: def _get_column_names(X):
      if isinstance(X, pd.DataFrame):
          return X.columns
      else:
          return _make_column_names(X.shape[1])
  
imports: import numpy
  import pandas
  from sktime.datatypes._convert_utils._coerce import _coerce_df_dtypes
  from sktime.datatypes._convert_utils._convert import _extend_conversions
  from sktime.datatypes._panel._registry import MTYPE_LIST_PANEL
  from sktime.utils.pandas import df_map
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 20 for calling a global function with example usage: _get_column_names(X) and returns: X, _make_column_names