code: def cast_categorical_to_object_dtype(
      df: pd.DataFrame,
  ) -> pd.DataFrame:
      """Cast categorical columns to the object dtype."""
      # NOTE:
      # pandas have bug with groupby on category dtypes,
      # so until it fixed, change dtypes manually
      categorical_columns = df.dtypes[
          df.dtypes == "category"
      ].index.tolist()
      if categorical_columns:
          df = df.astype({c: "object" for c in categorical_columns})
      return df
  
file_path: deepchecks/deepchecks/utils/dataframes.py
imports: import typing
  import numpy
  import pandas
  from pandas.core.dtypes.common import is_float_dtype, is_integer_dtype, is_numeric_dtype
  from deepchecks.core.errors import DeepchecksValueError
  from deepchecks.utils.type_inference import infer_categorical_features
  from deepchecks.utils.typing import Hashable
  from deepchecks.utils.validation import ensure_hashable_or_mutable_sequence
label_desc: Use image node_id 10 for calling a global function with example usage: cast_categorical_to_object_dtype(df) and returns: df