code: def _is_selector(estimator):
      selector_attributes = [
          "get_support",
          "transform",
          "inverse_transform",
          "fit_transform",
      ]
      return all(
          hasattr(estimator, attr) for attr in selector_attributes
      )
  
file_path: tpot/tpot/operator_utils.py
imports: import numpy
  from sklearn.base import BaseEstimator, is_classifier, is_regressor
  from sklearn.gaussian_process.kernels import Kernel
  import inspect
label_desc: Use image node_id 3 for calling a global function with example usage: _is_selector(estimator) and returns: all