code: def _reshape_for_est(X_del):
      """Convert X_del to a sklearn-compatible shape."""
      n_times, n_epochs, n_feats, n_delays = X_del.shape
      X_del = X_del.reshape(n_times, n_epochs, -1)  # concatenate feats
      X_del = X_del.reshape(n_times * n_epochs, -1, order="F")
      return X_del
  
imports: import numbers
  import numpy
  from scipy.stats import pearsonr
  from ..fixes import pinv
  from ..utils import _validate_type, fill_doc, verbose
  from .base import BaseEstimator, _check_estimator, get_coef
  from .time_delaying_ridge import TimeDelayingRidge
label_desc: Use image node_id 5 for calling a global function with example usage: _reshape_for_est(X_del) and returns: X_del