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