code: def check_array_survival(X, y, **kwargs):
      """Check that all arrays have consistent first dimensions.
  
      Parameters
      ----------
      X : array-like
          Data matrix containing feature vectors.
  
      y : structured array with two fields
          A structured array containing the binary event indicator
          as first field, and time of event or time of censoring as
          second field.
  
      kwargs : dict
          Additional arguments passed to :func:`check_y_survival`.
  
      Returns
      -------
      event : array, shape=[n_samples,], dtype=bool
          Binary event indicator.
  
      time : array, shape=[n_samples,], dtype=float
          Time of event or censoring.
      """
      event, time = check_y_survival(y, **kwargs)
      check_consistent_length(X, event, time)
      return event, time
  
file_path: scikit-survival/sksurv/util.py
imports: import numpy
  import pandas
  from pandas.api.types import CategoricalDtype
  from sklearn.utils import check_array, check_consistent_length
label_desc: Use image node_id 2 for calling a global function with example usage: check_array_survival(X, y) and returns: event,  time