code: def ensure_predictions_proba(
      pred_proba: np.ndarray, data: t.Sequence
  ) -> np.ndarray:
      """Ensure the predictions are in the right shape and if so return them. else raise error."""
      if len(pred_proba) != len(data):
          raise errors.ValidationError(
              f"Prediction probabilities expected to be of length {len(data)} "
              f"but was: {len(pred_proba)}"
          )
      return pred_proba
  
file_path: deepchecks/deepchecks/tabular/utils/validation.py
imports: import typing
  import numpy
  import pandas
  from deepchecks import tabular
  from deepchecks.core import errors
  from deepchecks.utils.typing import BasicModel
label_desc: Use image node_id 5 for calling a global function with example usage: ensure_predictions_proba(pred_proba, data) and returns: pred_proba