def METHOD_NAME():
    src = torch.randn(100, 32)
    index = torch.randint(0, 10, (100, ), dtype=torch.long)
    with pytest.raises(ValueError, match="must be one-dimensional"):
        scatter(src, index.view(-1, 1))
    with pytest.raises(ValueError, match="must lay between 0 and 1"):
        scatter(src, index, dim=2)
    with pytest.raises(ValueError, match="invalid `reduce` argument 'std'"):
        scatter(src, index, reduce='std')