def test_validate_anomaly_map_invalid_type(self) -> None:
        """Test validation of an anomaly map with invalid type."""
        with pytest.raises(TypeError, match="Anomaly map must be a torch.Tensor"):
            self.validator.validate_anomaly_map(np.random.default_rng().random((10, 224, 224)))
Test validation of an anomaly map with invalid type.
tests/unit/data/validators/torch/test_video.py