def validate_pred_score(
        pred_score: np.ndarray | float | None,
        anomaly_map: np.ndarray | None = None,
    ) -> np.ndarray | None:
        """Validate prediction score.

        Args:
            pred_score (np.ndarray | float | None): Input prediction score.
            anomaly_map (np.ndarray | None, optional): Associated anomaly map.
                Defaults to None.

        Returns:
            np.ndarray | None: Validated prediction score.
        """
        return NumpyImageValidator.validate_pred_score(pred_score, anomaly_map)
Validate prediction score.

        Args:
            pred_score (np.ndarray | float | None): Input prediction score.
            anomaly_map (np.ndarray | None, optional): Associated anomaly map.
                Defaults to None.

        Returns:
            np.ndarray | None: Validated prediction score.
        
src/anomalib/data/validators/numpy/depth.py