code: def test_dataset_summary():
      dataset = FakeDataset(num_graphs=10)
      num_nodes = torch.tensor([data.num_nodes for data in dataset])
      num_edges = torch.tensor([data.num_edges for data in dataset])
  
      summary = dataset.get_summary()
  
      assert summary.name == "FakeDataset"
      assert summary.num_graphs == 10
  
      check_stats(summary.num_nodes, num_nodes)
      check_stats(summary.num_edges, num_edges)
  
file_path: pytorch_geometric/test/data/test_dataset_summary.py
imports: import torch
  from torch import Tensor
  from torch_geometric.data.summary import Stats, Summary
  from torch_geometric.datasets import FakeDataset, FakeHeteroDataset
  from torch_geometric.testing import withPackage
label_desc: Use image node_id 2 for calling a global function with example usage: test_dataset_summary() without return types