code: def test_dataset_summary_representation():
      dataset = FakeDataset(num_graphs=10)
  
      summary1 = Summary.from_dataset(dataset, per_type=False)
      summary2 = Summary.from_dataset(dataset, per_type=True)
  
      assert str(summary1) == str(summary2)
  
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 3 for calling a global function with example usage: test_dataset_summary_representation() without return types