def test_validate_pred_score_valid(self) -> None:
        """Test validation of a valid prediction score."""
        score = torch.tensor(0.8)
        validated_score = self.validator.validate_pred_score(score)
        assert isinstance(validated_score, torch.Tensor)
        assert validated_score.dtype == torch.float32
        assert validated_score.item() == pytest.approx(0.8)
Test validation of a valid prediction score.
tests/unit/data/validators/torch/test_image.py