code: def test_unsupported_methods(method):
      model_config = ModelConfig(mode="regression", task_level="node")
  
      with pytest.raises(
          ValueError, match="does not support attribution"
      ):
          Explainer(
              GCN(model_config),
              algorithm=CaptumExplainer(method),
              explanation_type="model",
              edge_mask_type="object",
              node_mask_type="attributes",
              model_config=model_config,
          )
  
file_path: pytorch_geometric/test/explain/algorithm/test_captum_explainer.py
imports: from typing import Optional
  import pytest
  import torch
  from torch_geometric.explain import Explainer, Explanation
  from torch_geometric.explain.algorithm import CaptumExplainer
  from torch_geometric.explain.config import MaskType, ModelConfig, ModelMode, ModelReturnType, ModelTaskLevel
  from torch_geometric.nn import GCNConv, global_add_pool
  from torch_geometric.testing import withPackage
label_desc: Use image node_id 2 for calling a global function with example usage: test_unsupported_methods(method) without return types