class_docstr: Deprecated version for :class:`GNNExplainer`.
code: def explain_graph(
      self,
      x: Tensor,
      edge_index: Tensor,
      **kwargs,
  ) -> Tuple[Tensor, Tensor]:
      self._explainer.model_config.task_level = ModelTaskLevel.graph
  
      explanation = self._explainer(
          self.model,
          x,
          edge_index,
          target=self.get_initial_prediction(x, edge_index, **kwargs),
          **kwargs,
      )
      return self._convert_output(explanation, edge_index)
  
imports: from math import sqrt
  from typing import Optional, Tuple, Union
  import torch
  from torch import Tensor
  from torch.nn.parameter import Parameter
  from torch_geometric.explain import ExplainerConfig, Explanation, ModelConfig
  from torch_geometric.explain.algorithm import ExplainerAlgorithm
  from torch_geometric.explain.algorithm.utils import clear_masks, set_masks
  from torch_geometric.explain.config import MaskType, ModelMode, ModelTaskLevel
label_desc: Use image node_id 3 for calling the GNNExplainer_ obj's underlying member method code with example usage: obj.explain_graph(x, edge_index) and returns: self