code: def is_column_like(obj):
      """
      This function checks if the given `obj`
      is a column-like (Series, Index...)
      type or not.
  
      Parameters
      ----------
      obj : object of any type which needs to be validated.
  
      Returns
      -------
      Boolean: True or False depending on whether the
      input `obj` is column-like or not.
      """
      return (
          isinstance(
              obj,
              (
                  cudf.core.column.ColumnBase,
                  cudf.Series,
                  cudf.Index,
                  pd.Series,
                  pd.Index,
              ),
          )
          or (
              hasattr(obj, "__cuda_array_interface__")
              and len(obj.__cuda_array_interface__["shape"]) == 1
          )
          or (
              hasattr(obj, "__array_interface__")
              and len(obj.__array_interface__["shape"]) == 1
          )
      )
  
imports: import datetime
  from collections import namedtuple
  from decimal import Decimal
  import cupy
  import numpy
  import pandas
  import pyarrow
  from pandas.core.dtypes.common import infer_dtype_from_object
  import cudf
  from cudf._typing import DtypeObj
  from cudf.api.types import is_bool, is_float, is_integer
label_desc: Use image node_id 9 for calling a global function with example usage: is_column_like(obj) and returns: unknown