code: def test_column_transformer(
      clf_dataset, remainder, transformer_weights  # noqa: F811
  ):
      X_np, X = clf_dataset
  
      sk_selec1 = [0, 2]
      sk_selec2 = [1, 3]
      cu_selec1 = sk_selec1
      cu_selec2 = sk_selec2
      if isinstance(X, (pdDataFrame, cuDataFrame)):
          cu_selec1 = ["c" + str(i) for i in sk_selec1]
          cu_selec2 = ["c" + str(i) for i in sk_selec2]
  
      cu_transformers = [
          ("scaler", cuStandardScaler(), cu_selec1),
          ("normalizer", cuNormalizer(), cu_selec2),
      ]
  
      transformer = cuColumnTransformer(
          cu_transformers,
          remainder=remainder,
          transformer_weights=transformer_weights,
      )
      ft_X = transformer.fit_transform(X)
      t_X = transformer.transform(X)
      assert type(t_X) == type(X)
  
      sk_transformers = [
          ("scaler", skStandardScaler(), sk_selec1),
          ("normalizer", skNormalizer(), sk_selec2),
      ]
  
      transformer = skColumnTransformer(
          sk_transformers,
          remainder=remainder,
          transformer_weights=transformer_weights,
      )
      sk_t_X = transformer.fit_transform(X_np)
  
      assert_allclose(ft_X, sk_t_X)
      assert_allclose(t_X, sk_t_X)
  
file_path: cuml/python/cuml/tests/test_compose.py
imports: from cuml.testing.test_preproc_utils import assert_allclose
  from sklearn.preprocessing import StandardScaler, Normalizer, PolynomialFeatures, OneHotEncoder
  from cuml.preprocessing import StandardScaler, Normalizer, PolynomialFeatures, OneHotEncoder
  from sklearn.compose import ColumnTransformer, make_column_transformer, make_column_selector
  from cuml.compose import ColumnTransformer, make_column_transformer, make_column_selector
  from cuml.internals.safe_imports import gpu_only_import_from
  from cuml.internals.safe_imports import cpu_only_import_from
  from cuml.internals.safe_imports import cpu_only_import
  import pytest
  from cuml.internals.safe_imports import gpu_only_import
  from cuml.testing.test_preproc_utils import clf_dataset, sparse_clf_dataset
label_desc: Use image node_id 1 for calling a global function with example usage: test_column_transformer(clf_dataset, remainder, transformer_weights) without return types