code: def _has_cpu_params(estimator: BaseEstimator) -> bool:
      """Returns True if estimator has any CPU-related params."""
      return any(
          any(
              param.endswith(cpu_param_name)
              for cpu_param_name in SKLEARN_CPU_PARAM_NAMES
          )
          for param in estimator.get_params(deep=True)
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: _has_cpu_params(estimator) and returns: any