def METHOD_NAME(metric_class=ShortTimeObjectiveIntelligibility):
    """Test that error is raised on different shapes of input."""
    metric = metric_class(16000)
    with pytest.raises(RuntimeError, match="Predictions and targets are expected to have the same shape"):
        metric(torch.randn(100), torch.randn(50))