class_docstr: Mixin class for samplers with abstract method.
  
  Warning: This class should not be used directly. Use the derive classes
  instead.
code: def _check_X_y(self, X, y, accept_sparse: Optional[List[str]] = None):
      pass
  
imports: from abc import ABCMeta, abstractmethod
  from typing import List, Optional
  import numpy
  from sklearn.base import BaseEstimator
  from sklearn.preprocessing import label_binarize
  from sklearn.utils.multiclass import check_classification_targets
  from .utils import check_sampling_strategy, check_target_type
  from .utils import ArraysTransformer
label_desc: Use image node_id 4 for calling the SamplerMixin obj's underlying member method code with example usage: obj._check_X_y(X, y, accept_sparse) without return types