code: def test_dataset_summary_hetero():
      dataset1 = FakeHeteroDataset(num_graphs=10)
      summary1 = Summary.from_dataset(dataset1, per_type=False)
  
      dataset2 = [data.to_homogeneous() for data in dataset1]
      summary2 = Summary.from_dataset(dataset2)
      summary2.name = "FakeHeteroDataset"
  
      assert summary1 == summary2
      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 4 for calling a global function with example usage: test_dataset_summary_hetero() without return types