code: def _make_categorical_like(result, column):
      if isinstance(column, cudf.core.column.CategoricalColumn):
          result = cudf.core.column.build_categorical_column(
              categories=column.categories,
              codes=cudf.core.column.build_column(
                  result.base_data, dtype=result.dtype
              ),
              mask=result.base_mask,
              size=result.size,
              offset=result.offset,
              ordered=column.ordered,
          )
      return result
  
file_path: cudf/python/cudf/cudf/core/_internals/where.py
imports: import warnings
  from typing import Tuple, Union
  import numpy
  import cudf
  from cudf._typing import ScalarLike
  from cudf.api.types import _is_non_decimal_numeric_dtype, is_bool_dtype, is_scalar
  from cudf.core.column import ColumnBase
  from cudf.core.dtypes import CategoricalDtype
  from cudf.utils.dtypes import _can_cast, _dtype_can_hold_element, find_common_type, is_mixed_with_object_dtype
label_desc: Use image node_id 3 for calling a global function with example usage: _make_categorical_like(result, column) and returns: result