code: def test_scatter_validate():
      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")
  
file_path: pytorch_geometric/test/utils/test_scatter.py
imports: from itertools import product
  import pytest
  import torch
  import torch_geometric.typing
  from torch_geometric.profile import benchmark
  from torch_geometric.testing import withCUDA, withPackage
  from torch_geometric.utils import group_argsort, scatter
  from torch_geometric.utils._scatter import scatter_argmax
label_desc: Use image node_id 1 for calling a global function with example usage: test_scatter_validate() without return types