code: def test_make_column_selector():
      X_np = pdDataFrame(
          {
              "city": ["London", "London", "Paris", "Sallisaw"],
              "rating": [5, 3, 4, 5],
              "temperature": [21.0, 21.0, 24.0, 28.0],
          }
      )
      X = cudf.from_pandas(X_np)
  
      cu_transformers = [
          (
              "ohe",
              cuOneHotEncoder(),
              cu_make_column_selector(dtype_exclude=np.number),
          ),
          (
              "scaler",
              cuStandardScaler(),
              cu_make_column_selector(dtype_include=np.integer),
          ),
          (
              "normalizer",
              cuNormalizer(),
              cu_make_column_selector(pattern="temp"),
          ),
      ]
      transformer = cuColumnTransformer(
          cu_transformers, remainder="drop"
      )
      t_X = transformer.fit_transform(X)
  
      sk_transformers = [
          (
              "ohe",
              skOneHotEncoder(),
              sk_make_column_selector(dtype_exclude=np.number),
          ),
          (
              "scaler",
              skStandardScaler(),
              sk_make_column_selector(dtype_include=np.integer),
          ),
          (
              "normalizer",
              skNormalizer(),
              sk_make_column_selector(pattern="temp"),
          ),
      ]
      transformer = skColumnTransformer(
          sk_transformers, remainder="drop"
      )
      sk_t_X = transformer.fit_transform(X_np)
  
      assert_allclose(t_X, sk_t_X)
      assert type(t_X) == type(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 7 for calling a global function with example usage: test_make_column_selector() without return types