class_docstr: Applies `select_field` as FunctionTransformer
  
  Args:
      cols (array-like): list of columns to select
      single_dimension (bool): reduce data to
          one dimension if only one column
          is requested
class_docstr_tok: ["Applies","`","select_field","`","as","FunctionTransformer","Args",":","cols","(","array-like",")",":","list","of","columns","to","select","single_dimension","(","bool",")",":","reduce","data","to","one","dimension","if","only","one","column","is","requested"]
code: def __init__(self, cols=None, single_dimension=False):
      self.cols = cols
      self.single_dimension = single_dimension
      kw_args = {"cols": cols, "single_dimension": single_dimension}
      self.transformer_ = FunctionTransformer(
          select_field, kw_args=kw_args, validate=False
      )
  
imports: import warnings
  import pandas
  import numpy
  from scipy import sparse
  from sklearn.base import BaseEstimator, TransformerMixin
  from sklearn.preprocessing import MultiLabelBinarizer, FunctionTransformer, LabelEncoder, normalize
  from sklearn.feature_extraction.text import HashingVectorizer
  from sklearn import feature_selection
label_desc: Use image node_id 1 to create a new SelectField object from inherited base classes: _CustomFunctionTransformer with example: obj = SelectField(cols, single_dimension)