code: def test_pytorch_dataloader_batched(synthetic_dataset):
      batch_size = 10
      loader = DataLoader(
          make_reader(
              synthetic_dataset.url,
              schema_fields=PYTORCH_COMPATIBLE_FIELDS,
              reader_pool_type="dummy",
          ),
          batch_size=batch_size,
          collate_fn=_noop_collate,
      )
      for item in loader:
          assert len(item) == batch_size
  
file_path: petastorm/petastorm/tests/test_pytorch_utils.py
imports: from __future__ import division
  import numpy
  from petastorm import make_reader, TransformSpec
  from petastorm.pytorch import DataLoader
  from petastorm.tests.test_common import TestSchema
label_desc: Use image node_id 5 for calling a global function with example usage: test_pytorch_dataloader_batched(synthetic_dataset) without return types