class_docstr: Search Light.
  
  Fit, predict and score a series of models to each subset of the dataset
  along the last dimension. Each entry in the last dimension is referred
  to as a task.
  
  Parameters
  ----------
  %(base_estimator)s
  %(scoring)s
  %(n_jobs)s
  %(position)s
  %(allow_2d)s
  %(verbose)s
  
  Attributes
  ----------
  estimators_ : array-like, shape (n_tasks,)
      List of fitted scikit-learn estimators (one per task).
class_docstr_tok: ["Search","Light",".","Fit",",","predict","and","score","a","series","of","models","to","each","subset","of","the","dataset","along","the","last","dimension",".","Each","entry","in","the","last","dimension","is","referred","to","as","a","task",".","Parameters","--","--","--","--","--","%","(","base_estimator",")","s","%","(","scoring",")","s","%","(","n_jobs",")","s","%","(","position",")","s","%","(","allow_2d",")","s","%","(","verbose",")","s","Attributes","--","--","--","--","--","estimators_",":","array-like",",","shape","(","n_tasks",",",")","List","of","fitted","scikit-learn","estimators","(","one","per","task",")","."]
docstr: Aux. function to check input data.
code: def _check_Xy(self, X, y=None):
      """Aux. function to check input data."""
      X = np.asarray(X)
      if y is not None:
          y = np.asarray(y)
          if len(X) != len(y) or len(y) < 1:
              raise ValueError("X and y must have the same length.")
      if X.ndim < 3:
          err = None
          if not self.allow_2d:
              err = 3
          elif X.ndim < 2:
              err = 2
          if err:
              raise ValueError(
                  f"X must have at least {err} dimensions."
              )
          X = X[..., np.newaxis]
      return X
  
imports: import logging
  import numpy
  from ..fixes import _get_check_scoring
  from ..parallel import parallel_func
  from ..utils import ProgressBar, _parse_verbose, array_split_idx, fill_doc, verbose
  from .base import BaseEstimator, _check_estimator
  from .mixin import TransformerMixin
label_desc: Use image node_id 12 for calling the SlidingEstimator obj's underlying member method code with example usage: obj._check_Xy(X, y) and returns: X