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