def test_validate_gt_label_invalid_dtype(self) -> None:
        """Test validation of ground truth labels with invalid dtype."""
        # Test that float labels are converted to boolean
        labels = np.array([0.5, 1.5])
        validated_labels = self.validator.validate_gt_label(labels)
        assert isinstance(validated_labels, np.ndarray)
        assert validated_labels.dtype == bool
        assert np.array_equal(validated_labels, np.array([True, True]))
Test validation of ground truth labels with invalid dtype.
tests/unit/data/validators/numpy/test_video.py