code: def get_columns_by_name(ct, name):
      selected_cols = []
      for n, t, cols in ct.transformers_:
          if n == name:
              selected_cols = cols
      if getattr(selected_cols, "dtype", None) == "bool":
          selected_cols = selected_cols.index[selected_cols]
      return selected_cols
  
imports: import pytest
  import pandas
  import numpy
  from sklearn.datasets import load_iris, make_blobs, load_digits, fetch_openml
  from sklearn.svm import LinearSVC
  from sklearn.linear_model import LogisticRegression
  from sklearn.dummy import DummyClassifier
  from dabl.datasets import load_titanic
  from dabl.models import SimpleClassifier, SimpleRegressor, AnyClassifier
label_desc: Use image node_id 9 for calling a global function with example usage: get_columns_by_name(ct, name) and returns: selected_cols