code: def _check_estimator(estimator, verbose=False):
      """Print sparkContext awareness if apporpriate"""
      if verbose:
          if estimator.sc is None:
              print("No spark context is provided; running locally")
          else:
              print("Spark context found; running with spark")
  
imports: import numbers
  import numpy
  from itertools import compress
  from scipy.sparse import issparse
  from sklearn.model_selection import ParameterGrid
  from sklearn.utils.validation import check_is_fitted
label_desc: Use image node_id 1 for calling a global function with example usage: _check_estimator(estimator, verbose) without return types