def METHOD_NAME(self, y_pred: torch.Tensor, y: torch.Tensor) -> torch.Tensor:  # type: ignore[override]
    if y_pred.ndimension() < 2:
        raise ValueError("y_pred should have at least two dimensions.")
    return get_f_beta_score(y_pred=y_pred, y=y, include_background=self.include_background)