class_docstr: Holds all the obtained explanations of a heterogeneous graph.
  
  The explanation object is a :obj:`~torch_geometric.data.HeteroData` object
  and can hold node attributions and edge attributions.
  It can also hold the original graph if needed.
docstr: Validates the correctness of the :class:`Explanation` object.
docstr_tok: ["Validates","the","correctness","of","the",":","class",":","`","Explanation","`","object","."]
code: def validate(self, raise_on_error: bool = True) -> bool:
      r"""Validates the correctness of the :class:`Explanation` object."""
      status = super().validate(raise_on_error)
      status &= self.validate_masks(raise_on_error)
      return status
  
imports: import copy
  from typing import Dict, List, Optional, Union
  import torch
  from torch import Tensor
  from torch_geometric.data.data import Data, warn_or_raise
  from torch_geometric.data.hetero_data import HeteroData
  from torch_geometric.explain.config import ThresholdConfig, ThresholdType
  from torch_geometric.typing import EdgeType, NodeType
  from torch_geometric.visualization import visualize_graph
label_desc: Use image node_id 1 for calling the HeteroExplanation obj's underlying member method code with example usage: obj.validate(raise_on_error) and returns: status