code: def test_datapipe_batch_graphs(dataset_adapter):
      dp = dataset_adapter.batch_graphs(batch_size=2)
      assert len(dp) == 2
      batch = next(iter(dp))
      assert batch.x.shape == (6, 8)
  
file_path: pytorch_geometric/test/data/test_datapipes.py
imports: import pytest
  import torch
  from torch_geometric.data import Data
  from torch_geometric.data.datapipes import DatasetAdapter
  from torch_geometric.loader import DataLoader
  from torch_geometric.testing import withPackage
  from torch_geometric.utils import to_smiles
label_desc: Use image node_id 3 for calling a global function with example usage: test_datapipe_batch_graphs(dataset_adapter) without return types