code: def test_batched():
      assert list(file_adapters._batched(range(10), 5)) == [
          [0, 1, 2, 3, 4],
          [5, 6, 7, 8, 9],
      ]
      assert list(file_adapters._batched(range(10), 100)) == [
          [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
      ]
      assert not list(file_adapters._batched(range(10), 0))
  
file_path: datasets/tensorflow_datasets/core/file_adapters_test.py
imports: import pathlib
  from typing import Type
  import pytest
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import dataset_builder
  from tensorflow_datasets.core import file_adapters
label_desc: Use image node_id 1 for calling a global function with example usage: test_batched() without return types