class_docstr: Group together categories which occurence is less than a specified
  minimum fraction. Coalesced categories get index of one.
code: def check_X(self, X):
      X_data = X.data if sparse.issparse(X) else X
      if np.nanmin(X_data) < 2:
          raise ValueError(
              "X needs to contain only integers greater than two."
          )
  
file_path: auto-sklearn/autosklearn/pipeline/implementations/MinorityCoalescer.py
imports: import numpy
  from scipy import sparse
  from sklearn.base import BaseEstimator, TransformerMixin
label_desc: Use image node_id 2 for calling the MinorityCoalescer obj's underlying member method code with example usage: obj.check_X(X) without return types