def METHOD_NAME(self):
    subject = tio.Subject(
        a=tio.ScalarImage(tensor=torch.rand(1, 3, 3, 4)),
        b=tio.ScalarImage(tensor=torch.rand(2, 2, 3, 4)),
    )
    with pytest.raises(RuntimeError):
        subject.spatial_shape