code: def check_stats(stats: Stats, expected: Tensor):
      expected = expected.to(torch.float)
      assert stats.mean == float(expected.mean())
      assert stats.std == float(expected.std())
      assert stats.min == float(expected.min())
      assert stats.quantile25 == float(expected.quantile(0.25))
      assert stats.median == float(expected.median())
      assert stats.quantile75 == float(expected.quantile(0.75))
      assert stats.max == float(expected.max())
  
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 1 for calling a global function with example usage: check_stats(stats, expected) without return types