code: def test_eg_conv_with_error():
      with pytest.raises(
          ValueError, match="must be divisible by the number of"
      ):
          EGConv(16, 30, num_heads=8)
  
      with pytest.raises(ValueError, match="Unsupported aggregator"):
          EGConv(16, 32, aggregators=["xxx"])
  
file_path: pytorch_geometric/test/nn/conv/test_eg_conv.py
imports: import pytest
  import torch
  import torch_geometric.typing
  from torch_geometric.nn import EGConv
  from torch_geometric.testing import is_full_test
  from torch_geometric.typing import SparseTensor
  from torch_geometric.utils import to_torch_csc_tensor
label_desc: Use image node_id 1 for calling a global function with example usage: test_eg_conv_with_error() without return types